MDL-66607 message: Resolve race conditions in message deletion process
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 9 Mar 2020 01:08:21 +0000 (09:08 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 11 Mar 2020 08:23:16 +0000 (16:23 +0800)
commitefeaa51edc27dcd420608a560d91d26b87fa7acb
treee5f1bd9571e038e9f782c136a1ac284d826d3235
parent9df2f66fb4dcb615e40b9defd35e0a2882d98cc4
MDL-66607 message: Resolve race conditions in message deletion process

This commit makes several changes:
1) Explicitly stop polling for messages when a conversation is deleted;
2) Check for deleted conversations when displaying new messages;
3) Do not add a new empty conversation; and
4) Introduce pendingJS checks to ensure that Behat waits for messags to finish rendering.
message/amd/build/message_drawer_view_conversation.min.js
message/amd/build/message_drawer_view_conversation.min.js.map
message/amd/build/message_drawer_view_overview_section.min.js
message/amd/build/message_drawer_view_overview_section.min.js.map
message/amd/src/message_drawer_view_conversation.js
message/amd/src/message_drawer_view_overview_section.js