mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
Hide online presence
This commit is contained in:
@@ -316,33 +316,34 @@
|
||||
|
||||
- (void)refreshContactPresence
|
||||
{
|
||||
NSString* presenceText;
|
||||
NSString* matrixId = self.firstMatrixId;
|
||||
|
||||
if (matrixId)
|
||||
{
|
||||
MXUser *user = nil;
|
||||
if (BuildSettings.allowLocalContactPresence) {
|
||||
NSString* presenceText;
|
||||
NSString* matrixId = self.firstMatrixId;
|
||||
|
||||
// Consider here all sessions reported into contact manager
|
||||
NSArray* mxSessions = [MXKContactManager sharedManager].mxSessions;
|
||||
for (MXSession *mxSession in mxSessions)
|
||||
if (matrixId)
|
||||
{
|
||||
user = [mxSession userWithUserId:matrixId];
|
||||
if (user)
|
||||
MXUser *user = nil;
|
||||
|
||||
// Consider here all sessions reported into contact manager
|
||||
NSArray* mxSessions = [MXKContactManager sharedManager].mxSessions;
|
||||
for (MXSession *mxSession in mxSessions)
|
||||
{
|
||||
break;
|
||||
user = [mxSession userWithUserId:matrixId];
|
||||
if (user)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
presenceText = [Tools presenceText:user];
|
||||
}
|
||||
|
||||
presenceText = [Tools presenceText:user];
|
||||
else if (contact.isThirdPartyInvite)
|
||||
{
|
||||
presenceText = [VectorL10n roomParticipantsOffline];
|
||||
}
|
||||
|
||||
self.contactInformationLabel.text = presenceText;
|
||||
}
|
||||
else if (contact.isThirdPartyInvite)
|
||||
{
|
||||
presenceText = [VectorL10n roomParticipantsOffline];
|
||||
}
|
||||
|
||||
self.contactInformationLabel.text = presenceText;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - events
|
||||
|
||||
Reference in New Issue
Block a user