diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-08-18 09:39:30 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-08-18 09:39:40 +0200 |
commit | e1d1ed78763560f37da243294712381235179004 (patch) | |
tree | b6b6a4274200ec566e95b7415c012426c96804fb /_pytest/test_process_message.py | |
parent | 0eaf9ed4057f4adbfeb57289f7cc12774027a9aa (diff) | |
download | wee-slack-e1d1ed78763560f37da243294712381235179004.tar.gz |
Clear messages before processing history
If a message arrived after history was requested, but before the
response arrived, it would be lost. It would be printed after the
"getting channel history" text, and then handle_history would clear
that, and it would not be printed again since the message ts already was
processed.
By clearing the messages dict, the message will get processed and
printed again. So we should never clear the buffer without also clearing
the messages, to prevent such problems.
Diffstat (limited to '_pytest/test_process_message.py')
0 files changed, 0 insertions, 0 deletions