Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
8363 Widoki

What could be the reason for im chat to be slow, when you open the chat it takes 60s to get open, and when you send a message it takes between 50 to 65 seconds to send a message, also things you send doesn't appear on the chat after those 60 seconds, it used to work ok, a some week ago it begun to work too slow, the long polling it's taking up to 60 seconds to send/reflect its work(?) any idea?

ps: when you reload the page it show messages that were sent, if you don't reload it takes up to 60 seconds to show the message.

Awatar
Odrzuć
Najlepsza odpowiedź

Hello.

You can disable force sending IM chat notification by this code:


```python

class Message(models.Model):
    _inherit = 'mail.message'

    def create(self, vals):
        self = self.with_context(mail_notify_force_send=False)
        return super(Message, self).create(vals)

```

After that IM chat comments will be sent by Email Queue.
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
gru 23
6327
0
sie 15
6077
3
cze 24
3152
2
cze 24
2881
1
lip 23
3140