zulip/zerver/tornado
Tim Abbott 513b6d624f notifications: Fix double-sending in missedmessage_hook.
While the missedmessage_hook logic originally did a reasonably good
job of avoiding double-sending notifications, there was a corner case
it didn't handle, namely a user who had been presence-idle when a
message was sent and became also event-queue-idle as well within the
next 10 minutes.  For those users, they got a notification at message
send time, and the missedmessage_hook would deliver it a second time.

We fix this by just checking the conveniently available push_notified
and email_notified variables that indicate whether the message already
had a notification triggered.

Fixes #7031.
2017-10-17 21:54:03 -07:00
..
__init__.py tornado: Move tornado_ioloop_logging to new zerver/tornado tree. 2016-11-26 21:24:05 -08:00
application.py zerver/tornado: Remove print_function. 2017-09-27 18:05:45 -07:00
descriptors.py zerver/tornado: Remove print_function. 2017-09-27 18:05:45 -07:00
event_queue.py notifications: Fix double-sending in missedmessage_hook. 2017-10-17 21:54:03 -07:00
exceptions.py zerver/tornado: Remove absolute_import. 2017-09-27 10:00:39 -07:00
handlers.py zerver/tornado: remove `import six`. 2017-09-27 19:10:28 -07:00
ioloop_logging.py zerver/tornado: Remove from __future__ import *. 2017-09-28 10:14:03 -07:00
socket.py socket: Add logging for CSRF issue in logging code. 2017-10-11 22:39:14 -07:00
views.py zerver/tornado: Remove absolute_import. 2017-09-27 10:00:39 -07:00
websocket_client.py websocket_client: Use get_system_bot. 2017-08-24 23:16:18 -07:00