Draw attention to windows on new messages

pull/749/head
lilia 10 years ago
parent 0b31823989
commit 12eb553a3f

@ -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…
Cancel
Save