Handle SERVER channel type in name-format.service to capitalize channel names.

This commit is contained in:
akastijn 2026-08-08 22:59:11 +02:00
parent ce7c68511b
commit 49b85bb695

View File

@ -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;
}