Insert keychange advisories
On click, these open a verification panel for the relevant contact, within this conversation. // FREEBIE
This commit is contained in:
parent
1f0a93bf70
commit
7fe708d195
10 changed files with 93 additions and 13 deletions
|
@ -67,6 +67,27 @@
|
|||
}
|
||||
});
|
||||
|
||||
Whisper.KeyChangeView = Whisper.View.extend({
|
||||
tagName: 'li',
|
||||
className: 'keychange',
|
||||
templateName: 'keychange',
|
||||
initialize: function() {
|
||||
this.conversation = this.model.getModelForKeyChange();
|
||||
this.listenTo(this.conversation, 'change', this.render);
|
||||
},
|
||||
events: {
|
||||
'click .content': 'verifyIdentity'
|
||||
},
|
||||
render_attributes: function() {
|
||||
return {
|
||||
content: i18n('keychanged', this.conversation.getTitle())
|
||||
};
|
||||
},
|
||||
verifyIdentity: function() {
|
||||
this.$el.trigger('verify-identity', this.conversation);
|
||||
}
|
||||
});
|
||||
|
||||
Whisper.MessageView = Whisper.View.extend({
|
||||
tagName: 'li',
|
||||
templateName: 'message',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue