Compare commits
2 Commits
3f974b2dff
...
a3cb1247af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3cb1247af | ||
|
|
aca9bd45ab |
|
|
@ -86,6 +86,13 @@ export class ChatService implements OnDestroy {
|
||||||
|
|
||||||
public selectServer(server: string) {
|
public selectServer(server: string) {
|
||||||
this._selectedServer.set(server);
|
this._selectedServer.set(server);
|
||||||
|
this._servers.update((old) =>
|
||||||
|
old.map((chatServer) =>
|
||||||
|
chatServer.server === server
|
||||||
|
? {...chatServer, unreadMessages: 0}
|
||||||
|
: chatServer
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// single, deliberate escape hatch from the broken DOM/polyfill type overlap —
|
// single, deliberate escape hatch from the broken DOM/polyfill type overlap —
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user