mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
replaced deprecated function with the new one to check for power levels
This commit is contained in:
@@ -123,7 +123,7 @@ Please see LICENSE in the repository root for full details.
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
MXRoomPowerLevels *powerLevels = [roomState powerLevels];
|
||||
NSInteger userPowerLevel = [powerLevels powerLevelOfUserWithUserID:self->mxSession.myUser.userId];
|
||||
NSInteger userPowerLevel = [roomState powerLevelOfUserWithUserID:self->mxSession.myUser.userId];
|
||||
if (powerLevels.redact)
|
||||
{
|
||||
if (userPowerLevel >= powerLevels.redact)
|
||||
|
||||
Reference in New Issue
Block a user