1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 19:33:07 +01:00

Remove conversation viewer when conversation window is not in focus

This commit is contained in:
FreeScout 2020-11-20 21:15:21 -08:00
parent bd1278aab4
commit f9c2799526

5
public/js/main.js vendored
View File

@ -2960,7 +2960,10 @@ function polycastInit()
if (getGlobalAttr('conversation_id')) {
poly_data_closures.push(function(data) {
data.conversation_id = getGlobalAttr('conversation_id');
// If conversation_id is passed it means that user is viewing the converation
if (document.hasFocus()) {
data.conversation_id = getGlobalAttr('conversation_id');
}
if (getReplyFormMode() == 'reply') {
data.replying = 1;
} else {