mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
refactor set serveracl and fix json key
This commit is contained in:
@@ -1708,10 +1708,8 @@ BOOL reloadToggleCell = false;
|
||||
NSString *serverACLRule = updatedItemsDict[kRoomSettingsFederationKey];
|
||||
if (serverACLRule)
|
||||
{
|
||||
NSMutableDictionary *content = [[NSMutableDictionary alloc] initWithDictionary:@{
|
||||
@"allow": @[serverACLRule],
|
||||
@"allowIPLiterals" : @false
|
||||
}];
|
||||
|
||||
NSDictionary *content = [mxRoom createServerACLContentWithServerACL:serverACLRule];
|
||||
|
||||
pendingOperation = [mxRoom sendStateEventOfType:kMXEventTypeStringRoomServerACL content:content stateKey:nil success:^(NSString *eventId) {
|
||||
if (weakSelf)
|
||||
|
||||
Reference in New Issue
Block a user