Introduce MatrixClient.isMe for checking sessionID

This commit is contained in:
Chris Smith 2023-07-07 11:50:32 +01:00
parent 3e087c06da
commit 303a0a6677
6 changed files with 9 additions and 9 deletions

View file

@ -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
}