Reset unread message count for all servers when a new server is selected.
This commit is contained in:
@@ -86,6 +86,7 @@ export class ChatService implements OnDestroy {
|
||||
|
||||
public selectServer(server: string) {
|
||||
this._selectedServer.set(server);
|
||||
this._servers.update((old) => old.map((s) => ({...s, unreadMessages: 0})));
|
||||
}
|
||||
|
||||
// single, deliberate escape hatch from the broken DOM/polyfill type overlap —
|
||||
|
||||
Reference in New Issue
Block a user