mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Weakify self on presence notifications observers
This commit is contained in:
@@ -150,7 +150,9 @@
|
||||
if (contact.isMatrixContact)
|
||||
{
|
||||
// Observe contact presence change
|
||||
MXWeakify(self);
|
||||
mxPresenceObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXKContactManagerMatrixUserPresenceChangeNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
NSString* matrixId = self.firstMatrixId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user