mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Insert keychange advisories
On click, these open a verification panel for the relevant contact, within this conversation. // FREEBIE
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user