mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Introduce MatrixClient.isMe for checking sessionID
This commit is contained in:
+2
@@ -60,4 +60,6 @@ interface MatrixClient : Closeable {
|
||||
suspend fun loadUserAvatarURLString(): Result<String?>
|
||||
suspend fun uploadMedia(mimeType: String, data: ByteArray, progressCallback: ProgressCallback?): Result<String>
|
||||
fun roomMembershipObserver(): RoomMembershipObserver
|
||||
|
||||
fun isMe(userId: UserId?) = userId == sessionId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user