Skip to Content
Menú
This question has been flagged
1 Respondre
8373 Vistes

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.

Avatar
Descartar
Best Answer

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.
Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de des. 23
6354
0
d’ag. 15
6105
3
de juny 24
3170
2
de juny 24
2890
1
de jul. 23
3143