quality: remove useless code on MatrixRoomState
This commit is contained in:
parent
af6099106b
commit
e5317b069d
1 changed files with 0 additions and 18 deletions
|
|
@ -111,21 +111,3 @@ fun BaseRoom.isOwnUserAdmin(): Boolean {
|
||||||
val role = roomInfo.roleOf(sessionId)
|
val role = roomInfo.roleOf(sessionId)
|
||||||
return role == RoomMember.Role.Admin || role is RoomMember.Role.Owner
|
return role == RoomMember.Role.Admin || role is RoomMember.Role.Owner
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
|
||||||
fun BaseRoom.rawName(): String? {
|
|
||||||
val roomInfo by roomInfoFlow.collectAsState()
|
|
||||||
return roomInfo.rawName
|
|
||||||
}
|
|
||||||
|
|
||||||
@Composable
|
|
||||||
fun BaseRoom.topic(): String? {
|
|
||||||
val roomInfo by roomInfoFlow.collectAsState()
|
|
||||||
return roomInfo.topic
|
|
||||||
}
|
|
||||||
|
|
||||||
@Composable
|
|
||||||
fun BaseRoom.avatarUrl(): String? {
|
|
||||||
val roomInfo by roomInfoFlow.collectAsState()
|
|
||||||
return roomInfo.avatarUrl
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue