Add items to conversation history when user verifies/unverifies

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-15 12:27:41 -07:00
parent 02973372aa
commit 1cf9289b1a
12 changed files with 168 additions and 4 deletions

View file

@ -182,6 +182,18 @@
}
return this.modelForKeyChange;
},
getModelForVerifiedChange: function() {
var id = this.get('verifiedChanged');
if (!this.modelForVerifiedChange) {
var c = ConversationController.get(id);
if (!c) {
c = ConversationController.create({ id: id, type: 'private' });
c.fetch();
}
this.modelForVerifiedChange = c;
}
return this.modelForVerifiedChange;
},
isOutgoing: function() {
return this.get('type') === 'outgoing';
},