mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
@@ -106,6 +106,19 @@
|
||||
});
|
||||
},
|
||||
|
||||
endSession: function() {
|
||||
if (this.get('type') === 'private') {
|
||||
textsecure.messaging.closeSession(this.id);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
leaveGroup: function() {
|
||||
if (this.get('type') === 'group') {
|
||||
textsecure.messaging.leaveGroup(this.id);
|
||||
}
|
||||
},
|
||||
|
||||
receiveMessage: function(decrypted) {
|
||||
var conversation = this;
|
||||
var timestamp = decrypted.pushMessage.timestamp.toNumber();
|
||||
|
||||
Reference in New Issue
Block a user