Merge pull request #7342 from vector-im/nimau/6597_hide_presence_if_unknown

Hide the presence info if the presence status is unknown
This commit is contained in:
Nicolas Mauri
2023-02-07 11:23:29 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -36,7 +36,11 @@
presenceText = [VectorL10n roomParticipantsIdle];
break;
case MXPresenceUnknown: // Do like matrix-js-sdk
case MXPresenceUnknown:
// Fix https://github.com/vector-im/element-ios/issues/6597
// Return nil because we don't want to display anything if the status is unknown
return nil;
case MXPresenceOffline:
presenceText = [VectorL10n roomParticipantsOffline];
break;
+1
View File
@@ -0,0 +1 @@
Hide the presence info if the presence status is unknown.