Remove an extension.trigger
No need to trigger an extension-wide event now that all our models live in the background page. We can just update them more or less directly.
This commit is contained in:
@@ -29,6 +29,14 @@
|
||||
return conversations.get(windowMap.modelIdFrom(windowId));
|
||||
};
|
||||
|
||||
window.updateConversation = function(conversationId) {
|
||||
var conversation = conversations.get(conversationId)
|
||||
if (conversation) {
|
||||
conversation.fetch();
|
||||
conversation.fetchMessages();
|
||||
}
|
||||
};
|
||||
|
||||
function closeConversation (windowId) {
|
||||
windowMap.remove('windowId', windowId);
|
||||
};
|
||||
|
Reference in New Issue
Block a user