replaced deprecated function with the new one to check for power levels

This commit is contained in:
Mauro Romito
2025-07-22 16:17:48 +02:00
parent 1db7169d4e
commit 1a23b84882
22 changed files with 64 additions and 51 deletions
@@ -691,7 +691,7 @@ Please see LICENSE in the repository root for full details.
- (BOOL)canInvitePeople
{
NSInteger requiredLevel = roomDataSource.roomState.powerLevels.invite;
NSInteger myLevel = [roomDataSource.roomState.powerLevels powerLevelOfUserWithUserID:roomDataSource.mxSession.myUserId];
NSInteger myLevel = [roomDataSource.roomState powerLevelOfUserWithUserID:roomDataSource.mxSession.myUserId];
return myLevel >= requiredLevel;
}