adding support for trusted, verified/staff/danger badges, wip

This commit is contained in:
or-else
2021-06-25 12:27:03 -07:00
parent 3d0d7048aa
commit 58426cd0ee
19 changed files with 99 additions and 24 deletions
+2 -1
View File
@@ -760,6 +760,7 @@ class TinodeWeb extends React.Component {
// 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;
@@ -1373,7 +1374,7 @@ class TinodeWeb extends React.Component {
subscribed && deleter ? 'messages_clear_hard' : null,
muted ? (blocked ? null : 'topic_unmute') : 'topic_mute',
self_blocked ? 'topic_unblock' : 'topic_block',
!archived ? 'topic_archive' : null,
!archived ? 'topic_restore' : 'topic_archive',
'topic_delete'
];
}