mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Better comment
This commit is contained in:
parent
3ee5a7f54d
commit
54f2ac0d8c
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,6 @@ class MxLinkTagHandler(private val glideRequests: GlideRequests,
|
|||
MatrixItem.UserItem(permalinkData.userId, user?.displayName, user?.avatarUrl)
|
||||
}
|
||||
is PermalinkData.RoomLink -> {
|
||||
// Exclude event link (used in reply event)
|
||||
if (permalinkData.eventId == null) {
|
||||
val room: RoomSummary? = sessionHolder.getSafeActiveSession()?.getRoomSummary(permalinkData.roomIdOrAlias)
|
||||
if (permalinkData.isRoomAlias) {
|
||||
|
@ -55,6 +54,7 @@ class MxLinkTagHandler(private val glideRequests: GlideRequests,
|
|||
MatrixItem.RoomItem(permalinkData.roomIdOrAlias, room?.displayName, room?.avatarUrl)
|
||||
}
|
||||
} else {
|
||||
// Exclude event link (used in reply events, we do not want to pill the "in reply to")
|
||||
null
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue