mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Simplify panel state management and message passing
This commit is contained in:
@@ -19,6 +19,8 @@ var Whisper = Whisper || {};
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var bg = chrome.extension.getBackgroundPage();
|
||||
|
||||
// list of conversations, showing user/group and last message sent
|
||||
Whisper.ConversationListItemView = Backbone.View.extend({
|
||||
tagName: 'div',
|
||||
@@ -45,7 +47,7 @@ var Whisper = Whisper || {};
|
||||
this.view = new Whisper.ConversationView({ model: this.model });
|
||||
}
|
||||
|
||||
openConversation(modelId);
|
||||
bg.openConversation(modelId);
|
||||
|
||||
this.model.collection.trigger('selected', this.view);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user