Draw attention to windows on new messages
This commit is contained in:
parent
0b31823989
commit
12eb553a3f
2 changed files with 10 additions and 1 deletions
|
@ -141,6 +141,12 @@
|
|||
} else {
|
||||
window.addEventListener('beforeunload', callback);
|
||||
}
|
||||
},
|
||||
|
||||
drawAttention: function(window_id) {
|
||||
if (chrome.app.window) {
|
||||
chrome.app.window.get(window_id).drawAttention();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -65,7 +65,10 @@
|
|||
});
|
||||
conversation.fetchMessages();
|
||||
} else {
|
||||
openConversation(message.get('conversationId'));
|
||||
var conversationId = message.get('conversationId');
|
||||
openConversation(conversationId);
|
||||
var windowId = windowMap.windowIdFrom(conversationId);
|
||||
extension.windows.drawAttention(windowId);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue