diff --git a/Riot/Utils/Tools.m b/Riot/Utils/Tools.m index 77ae6837e..128fe3694 100644 --- a/Riot/Utils/Tools.m +++ b/Riot/Utils/Tools.m @@ -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; diff --git a/changelog.d/6597.change b/changelog.d/6597.change new file mode 100644 index 000000000..46ca176a7 --- /dev/null +++ b/changelog.d/6597.change @@ -0,0 +1 @@ +Hide the presence info if the presence status is unknown.