Handle SERVER channel type in name-format.service to capitalize channel names.
This commit is contained in:
parent
ce7c68511b
commit
49b85bb695
|
|
@ -38,6 +38,9 @@ export class NameFormatService {
|
||||||
if (channel.type === 'DM' || channel.type === 'SPY') {
|
if (channel.type === 'DM' || channel.type === 'SPY') {
|
||||||
return this.chatService.userNameMap().get(channel.name) ?? channel.name;
|
return this.chatService.userNameMap().get(channel.name) ?? channel.name;
|
||||||
}
|
}
|
||||||
|
if (channel.type === 'SERVER') {
|
||||||
|
return channel.name.charAt(0).toUpperCase() + channel.name.slice(1);
|
||||||
|
}
|
||||||
return channel.name;
|
return channel.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user