mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-20 21:40:56 +01:00
Support reactions on Voice Broadcast
This commit is contained in:
parent
0cdbceaa00
commit
e4d0394234
1
changelog.d/7807.misc
Normal file
1
changelog.d/7807.misc
Normal file
@ -0,0 +1 @@
|
||||
Support reactions on Voice Broadcast
|
@ -27,7 +27,8 @@ import org.matrix.android.sdk.api.session.room.timeline.getLastMessageContent
|
||||
|
||||
fun TimelineEvent.canReact(): Boolean {
|
||||
// Only event of type EventType.MESSAGE, EventType.STICKER and EventType.POLL_START are supported for the moment
|
||||
return root.getClearType() in listOf(EventType.MESSAGE, EventType.STICKER) + EventType.POLL_START.values + EventType.POLL_END.values &&
|
||||
return root.getClearType() in listOf(EventType.MESSAGE, EventType.STICKER, VoiceBroadcastConstants.STATE_ROOM_VOICE_BROADCAST_INFO) +
|
||||
EventType.POLL_START.values + EventType.POLL_END.values &&
|
||||
root.sendState == SendState.SYNCED &&
|
||||
!root.isRedacted()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user