mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 18:42:47 +02:00
Weakify self on presence notifications observers
This commit is contained in:
@@ -121,7 +121,9 @@
|
||||
if (!mxDirectUserPresenceObserver && self.mxRoom.isDirect)
|
||||
{
|
||||
// Observe contact presence change
|
||||
MXWeakify(self);
|
||||
mxDirectUserPresenceObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXKContactManagerMatrixUserPresenceChangeNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
NSString* directUserId = self.mxRoom.directUserId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user