Reset unread badges when chat history is replaced
This commit is contained in:
parent
668bf58909
commit
ff733404c2
1 changed files with 1 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ export function mountGameChat(emitter: ChatEmitter, host: Element): void {
|
|||
}
|
||||
emitter.on('chat:messages', (data: ChatMessage[]) => {
|
||||
messages = data || [];
|
||||
unread.clear();
|
||||
render();
|
||||
});
|
||||
emitter.on('chat:appended', (data: ChatMessage[]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue