mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Hide online presence
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
// existing user ?
|
||||
if (user)
|
||||
{
|
||||
thumbnailBorderColor = [MXKAccount presenceColor:user.presence];
|
||||
thumbnailBorderColor = [MXKAccount presenceColor:MXPresenceOffline];
|
||||
presenceText = [self lastActiveTime];
|
||||
// Keep last seen range to update it
|
||||
lastSeenRange = NSMakeRange(self.userLabel.text.length + 2, presenceText.length);
|
||||
@@ -158,7 +158,7 @@
|
||||
}
|
||||
|
||||
// and the presence text (if any)
|
||||
if (presenceText)
|
||||
if (presenceText && BuildSettings.allowLocalContactPresence)
|
||||
{
|
||||
NSString* extraText = [NSString stringWithFormat:@"(%@)", presenceText];
|
||||
self.userLabel.text = [NSString stringWithFormat:@"%@ %@", self.userLabel.text, extraText];
|
||||
|
||||
Reference in New Issue
Block a user