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