Better comment
This commit is contained in:
parent
3ee5a7f54d
commit
54f2ac0d8c
@ -46,7 +46,6 @@ class MxLinkTagHandler(private val glideRequests: GlideRequests,
|
|||||||
MatrixItem.UserItem(permalinkData.userId, user?.displayName, user?.avatarUrl)
|
MatrixItem.UserItem(permalinkData.userId, user?.displayName, user?.avatarUrl)
|
||||||
}
|
}
|
||||||
is PermalinkData.RoomLink -> {
|
is PermalinkData.RoomLink -> {
|
||||||
// Exclude event link (used in reply event)
|
|
||||||
if (permalinkData.eventId == null) {
|
if (permalinkData.eventId == null) {
|
||||||
val room: RoomSummary? = sessionHolder.getSafeActiveSession()?.getRoomSummary(permalinkData.roomIdOrAlias)
|
val room: RoomSummary? = sessionHolder.getSafeActiveSession()?.getRoomSummary(permalinkData.roomIdOrAlias)
|
||||||
if (permalinkData.isRoomAlias) {
|
if (permalinkData.isRoomAlias) {
|
||||||
@ -55,6 +54,7 @@ class MxLinkTagHandler(private val glideRequests: GlideRequests,
|
|||||||
MatrixItem.RoomItem(permalinkData.roomIdOrAlias, room?.displayName, room?.avatarUrl)
|
MatrixItem.RoomItem(permalinkData.roomIdOrAlias, room?.displayName, room?.avatarUrl)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// Exclude event link (used in reply events, we do not want to pill the "in reply to")
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user