mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 02:18:15 +01:00
New messages auto-update the inbox & conversation
When a new message arrives, if its conversation is not already opened, the background page opens it. If it is alrady open the window is focused. Finally, the 'message' event is triggered, resulting in 1. the inbox refetches conversations 2. all conversations fetch new messages TODO: only send this event to the target window
This commit is contained in:
@@ -42,6 +42,11 @@
|
||||
if (this.model.id) {
|
||||
this.model.fetchMessages({reset: true});
|
||||
}
|
||||
|
||||
extension.on('message', function() {
|
||||
this.model.fetchMessages();
|
||||
}.bind(this));
|
||||
|
||||
window.addEventListener('resize', this.view.resize.bind(this.view));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user