mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Prevent various room subscription task from blocking opening rooms
- this came from having seen the opening room modal show up too often which was caused by `isEncrypted` being block_on on the rust side and sometimes making network requests - we aggreed that the `block_on`s should go, which is handled in https://github.com/matrix-org/matrix-rust-sdk/pull/4756 and https://github.com/matrix-org/matrix-rust-sdk/pull/4757
This commit is contained in:
parent
4d34a1ed56
commit
2d77a1b10b
@ -135,15 +135,17 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
|
||||
await timeline.subscribeForUpdates()
|
||||
|
||||
subscribeToRoomInfoUpdates()
|
||||
Task {
|
||||
subscribeToRoomInfoUpdates()
|
||||
|
||||
if isEncrypted {
|
||||
subscribeToIdentityStatusChanges()
|
||||
subscribeToTypingNotifications()
|
||||
|
||||
await subscribeToKnockRequests()
|
||||
|
||||
if isEncrypted { // This is actually blocking on the rust side and might make network requests
|
||||
subscribeToIdentityStatusChanges()
|
||||
}
|
||||
}
|
||||
|
||||
subscribeToTypingNotifications()
|
||||
|
||||
await subscribeToKnockRequests()
|
||||
}
|
||||
|
||||
func subscribeToRoomInfoUpdates() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user