Fixed the UI not updating when the room is Locked/Unlocked
- fixes #2082
Updated the room upon receiving a processRoomListEvent in the NCExternalSignalingController.
Is this the right way to implement this? Not sure if updating is a heavy operation or not. On Android we have the room state updated upon receiving a new capability from the server, which is then reflected in the UI.
https://github.com/user-attachments/assets/a6f4cf8b-38e5-4364-9d7a-c2a0bf317b41
Cool stuff, thanks! Need to take a closer look of that is the best way to solve, out of my head I am not totally sure.
Do you also re-fetch the room from the server whenever you receive an update message from the external signaling on Android?
Even though that solution works, I think the best and most performant solution would be to check the updated attributes included in the update message and update the room locally, without making an additional request to the server.
The recently merged pinning PR is doing something similar to directly act on the system message:
https://github.com/nextcloud/talk-ios/blob/ee12fd34c24b95dd67b867606a69e7ede05cf855/NextcloudTalk/Chat/ChatViewController.swift#L1785-L1792
I think we can adopt this for this here as well?