Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8386 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
3
dic 23
6434
0
ago 15
6121
3
jun 24
3214
2
jun 24
2908
1
jul 23
3168