Pinned messages : allow to unpin redacted message
This commit is contained in:
parent
78d13fc03c
commit
0bf846086f
1 changed files with 2 additions and 2 deletions
|
|
@ -190,9 +190,9 @@ private fun List<TimelineItemAction>.postFilter(content: TimelineItemEventConten
|
|||
when (content) {
|
||||
is TimelineItemCallNotifyContent,
|
||||
is TimelineItemLegacyCallInviteContent,
|
||||
is TimelineItemStateContent,
|
||||
is TimelineItemStateContent -> action == TimelineItemAction.ViewSource
|
||||
is TimelineItemRedactedContent -> {
|
||||
action == TimelineItemAction.ViewSource
|
||||
action == TimelineItemAction.ViewSource || action == TimelineItemAction.Unpin
|
||||
}
|
||||
else -> true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue