Insert keychange advisories

On click, these open a verification panel for the relevant contact,
within this conversation.

// FREEBIE
This commit is contained in:
lilia 2016-09-17 23:55:05 -07:00
parent 1f0a93bf70
commit 7fe708d195
10 changed files with 93 additions and 13 deletions

View file

@ -132,6 +132,15 @@
}
return c;
},
getModelForKeyChange: function() {
var id = this.get('key_changed');
var c = ConversationController.get(id);
if (!c) {
c = ConversationController.create({ id: id, type: 'private' });
c.fetch();
}
return c;
},
isOutgoing: function() {
return this.get('type') === 'outgoing';
},