Handle SERVER channel type in name-format.service to capitalize channel names.
This commit is contained in:
@@ -38,6 +38,9 @@ export class NameFormatService {
|
||||
if (channel.type === 'DM' || channel.type === 'SPY') {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user