From 6cd180771a4915ccce322e7bb32f01b3654370c0 Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 15 Mar 2021 16:47:03 -0700 Subject: [PATCH] fix missing topic name in contacts --- src/views/tinode-web.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/tinode-web.jsx b/src/views/tinode-web.jsx index 585c7fca..ef3c2f56 100644 --- a/src/views/tinode-web.jsx +++ b/src/views/tinode-web.jsx @@ -675,6 +675,10 @@ class TinodeWeb extends React.Component { } this.tinode.getMeTopic().contacts((c) => { + if (!c.topic && !c.user) { + // Contacts expect c.topic to be set. + c.topic = c.name; + } newState.chatList.push(c); if (this.state.topicSelected == c.topic) { newState.topicSelectedOnline = c.online;