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);