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:
parent
bd1278aab4
commit
f9c2799526
5
public/js/main.js
vendored
5
public/js/main.js
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user