Prioritise joining rooms by alias if available and letting the homeserver do the right thing

This commit is contained in:
Stefan Ceriu
2024-06-12 15:55:12 +03:00
committed by Stefan Ceriu
parent a2faae20c2
commit b73e5e9e5d
4 changed files with 101 additions and 6 deletions
@@ -131,6 +131,8 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
func joinRoom(_ roomID: String, via: [String]) async -> Result<Void, ClientProxyError>
func joinRoomAlias(_ roomAlias: String) async -> Result<Void, ClientProxyError>
func uploadMedia(_ media: MediaInfo) async -> Result<String, ClientProxyError>
func roomForIdentifier(_ identifier: String) async -> RoomProxyProtocol?