From 9c473e80af0a8b36080cd9868e35da1eaa3530f8 Mon Sep 17 00:00:00 2001 From: Thilo Molitor Date: Tue, 17 Dec 2024 04:08:23 +0100 Subject: [PATCH] Fix backport compile error --- Monal/Classes/MLConstants.h | 3 ++- Monal/Classes/MLProcessLock.m | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Monal/Classes/MLConstants.h b/Monal/Classes/MLConstants.h index 864be98d59..ea1725bd33 100644 --- a/Monal/Classes/MLConstants.h +++ b/Monal/Classes/MLConstants.h @@ -145,7 +145,8 @@ static inline NSString* _Nonnull LocalizationNotNeeded(NSString* _Nonnull s) #define kMonalIncomingSDP @"kMonalIncomingSDP" #define kMonalIncomingICECandidate @"kMonalIncomingICECandidate" #define kMonalWillBeFreezed @"kMonalWillBeFreezed" -#define kMonalIsFreezed @"kMonalIsFreezed" +#define kMonalFrozen @"kMonalFrozen" +#define kMonalUnfrozen @"kMonalUnfrozen" #define kMonalNewMessageNotice @"kMonalNewMessageNotice" #define kMonalMucSubjectChanged @"kMonalMucSubjectChanged" #define kMonalDeletedMessageNotice @"kMonalDeletedMessageNotice" diff --git a/Monal/Classes/MLProcessLock.m b/Monal/Classes/MLProcessLock.m index 1f6ac4cc3c..a259525415 100755 --- a/Monal/Classes/MLProcessLock.m +++ b/Monal/Classes/MLProcessLock.m @@ -65,7 +65,7 @@ +(void) lock lock = flock(_ownLockFD, LOCK_EX | LOCK_NB); if(lock != 0) @throw [NSException exceptionWithName:@"LockingError" reason:[NSString stringWithFormat:@"flock returned: %d (%d) on file: %s", lock, errno, _ownLockPath] userInfo:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(unlock) name:kMonalIsFreezed object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(unlock) name:kMonalFrozen object:nil]; } }