mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Fix exceptions on window close
The stopListening function was being passed the close event as an argument, which caused it to throw. // FREEBIE
This commit is contained in:
@@ -25,7 +25,9 @@
|
||||
this.listenTo(this.model.messageCollection, 'add remove', updateLastMessage);
|
||||
this.listenTo(this.model, 'newmessage', updateLastMessage);
|
||||
|
||||
extension.windows.onClosed(this.stopListening.bind(this));
|
||||
extension.windows.onClosed(function() {
|
||||
this.stopListening();
|
||||
}.bind(this));
|
||||
this.timeStampView = new Whisper.TimestampView({brief: true});
|
||||
this.model.updateLastMessage();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user