MESSENGER-5383 Check alias on acl update

This commit is contained in:
JanNiklas Grabowski
2024-01-30 12:45:05 +01:00
parent 80170b0c4f
commit ba4e145039
5 changed files with 70 additions and 11 deletions
@@ -163,6 +163,8 @@ struct RoomFederationDecisionView: View {
func setServerACL(isFederated: Bool) {
let content: [String:Any] = room.createServerACL(isFederated: isFederated)
isUpdatingServerACLs = true
// #5383 set alias
room.setAliasIfNeeded()
pendingRequest = room.sendStateEvent(MXEventType.roomServerACL, content: content, stateKey: "") { response in
isUpdatingServerACLs = false
if response.isSuccess {