mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Update vector/src/main/java/im/vector/app/features/home/room/detail/timeline/action/MessageActionsViewModel.kt
This commit is contained in:
parent
6180076512
commit
589be8b15f
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
|||
}
|
||||
|
||||
private fun canRedact(event: TimelineEvent, actionPermissions: ActionPermissions): Boolean {
|
||||
// Only event of type EventType.MESSAGE are supported for the moment
|
||||
// Only event of type EventType.MESSAGE or EventType.STICKER are supported for the moment
|
||||
if (event.root.getClearType() !in listOf(EventType.MESSAGE, EventType.STICKER)) return false
|
||||
// Message sent by the current user can always be redacted
|
||||
if (event.root.senderId == session.myUserId) return true
|
||||
|
|
Loading…
Reference in a new issue