Fixes #2624, fixes #2625 - Add user suggestions in the create room flows.

This commit is contained in:
Stefan Ceriu
2024-04-01 11:37:39 +03:00
committed by Stefan Ceriu
parent c85c1593ee
commit 97d9189077
17 changed files with 252 additions and 60 deletions
@@ -39,6 +39,7 @@ enum ClientProxyLoadingState {
enum ClientProxyError: Error {
case sdkError(Error)
case invalidMedia
case failedUploadingMedia(Error, MatrixErrorCode)
}
@@ -147,4 +148,12 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
func ignoreUser(_ userID: String) async -> Result<Void, ClientProxyError>
func unignoreUser(_ userID: String) async -> Result<Void, ClientProxyError>
// MARK: - Recently visited rooms
func trackRecentlyVisitedRoom(_ roomID: String) async -> Result<Void, ClientProxyError>
func recentlyVisitedRooms() async -> Result<[String], ClientProxyError>
func recentConversationCounterparts() async -> [UserProfileProxy]
}