From 23e48a6b4f181ebbc8c36230adff8a3938ea57f0 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 7 Jun 2019 13:44:52 +0200 Subject: [PATCH] Fix messenger unable to send messages --- www/common/messenger-ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/messenger-ui.js b/www/common/messenger-ui.js index bd77d80ff..c78ca6db4 100644 --- a/www/common/messenger-ui.js +++ b/www/common/messenger-ui.js @@ -618,8 +618,10 @@ define([ }; var onLeave = function (obj) { var channel = obj.id; + var chan = state.channels[channel]; var data = obj.info; - if (contactsData[data.curvePublic]) { + // XXX Teams: if someone leaves a room, don't remove their data if they're also a friend + if (contactsData[data.curvePublic] && !(chan && chan.isFriendChat)) { delete contactsData[data.curvePublic]; } updateStatus(channel);