mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Cleanup
This commit is contained in:
+4
-8
@@ -122,10 +122,8 @@ fun RoomDetailsView(
|
|||||||
roomId = state.roomId,
|
roomId = state.roomId,
|
||||||
roomName = state.roomName,
|
roomName = state.roomName,
|
||||||
roomAlias = state.roomAlias,
|
roomAlias = state.roomAlias,
|
||||||
openAvatarPreview = {
|
openAvatarPreview = { avatarUrl ->
|
||||||
if (state.roomAvatarUrl != null) {
|
openAvatarPreview(state.roomName, avatarUrl)
|
||||||
openAvatarPreview(state.roomName, state.roomAvatarUrl)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
MainActionsSection(
|
MainActionsSection(
|
||||||
@@ -140,10 +138,8 @@ fun RoomDetailsView(
|
|||||||
avatarUrl = state.roomAvatarUrl ?: member.avatarUrl,
|
avatarUrl = state.roomAvatarUrl ?: member.avatarUrl,
|
||||||
userId = member.userId.value,
|
userId = member.userId.value,
|
||||||
userName = state.roomName,
|
userName = state.roomName,
|
||||||
openAvatarPreview = {
|
openAvatarPreview = { avatarUrl ->
|
||||||
if (member.avatarUrl != null) {
|
openAvatarPreview(member.displayName ?: member.userId.value, avatarUrl)
|
||||||
openAvatarPreview(member.displayName ?: member.userId.value, member.avatarUrl!!)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
RoomMemberMainActionsSection(onShareUser = ::onShareMember)
|
RoomMemberMainActionsSection(onShareUser = ::onShareMember)
|
||||||
|
|||||||
Reference in New Issue
Block a user