Compare commits
2 Commits
ce7c68511b
...
bdda71229d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdda71229d | ||
|
|
49b85bb695 |
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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++;
|
||||||
|
|
|
||||||
|
|
@ -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