Compare commits

...

2 Commits

3 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@
padding-left: 10px; padding-left: 10px;
.message-count { .message-count {
font-family: 'opensans-bold', sans-serif;
padding-left: 5px; padding-left: 5px;
} }
} }

View File

@ -107,7 +107,7 @@ export class ChatService implements OnDestroy {
name: message.channelName!, name: message.channelName!,
type: message.channelType!, type: message.channelType!,
unreadMessages: 0, unreadMessages: 0,
totalMessages: 0 totalMessages: 1
}]); }]);
} else { } else {
found.totalMessages++; found.totalMessages++;

View File

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