Fix socket reconnect if the pubsub token is same (#942)
This commit is contained in:
parent
52d28105e4
commit
602132119b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class ActionCableConnector extends BaseActionCableConnector {
|
|||
}
|
||||
|
||||
export const refreshActionCableConnector = pubsubToken => {
|
||||
if (!pubsubToken) {
|
||||
if (!pubsubToken || window.chatwootPubsubToken === pubsubToken) {
|
||||
return;
|
||||
}
|
||||
window.chatwootPubsubToken = pubsubToken;
|
||||
|
|
Loading…
Reference in a new issue