mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Fixing retrieve of related event id in the end poll event during aggregation
This commit is contained in:
parent
57cedaeb69
commit
bd91db66f8
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class DefaultPollAggregationProcessor @Inject constructor() : PollAggregationPro
|
|||
override fun handlePollEndEvent(session: Session, powerLevelsHelper: PowerLevelsHelper, realm: Realm, event: Event): Boolean {
|
||||
val content = event.getClearContent()?.toModel<MessageEndPollContent>() ?: return false
|
||||
val roomId = event.roomId ?: return false
|
||||
val pollEventId = content.relatesTo?.eventId ?: return false
|
||||
val pollEventId = (event.getRelationContent() ?: content.relatesTo)?.eventId ?: return false
|
||||
val pollOwnerId = getPollEvent(session, roomId, pollEventId)?.root?.senderId
|
||||
val isPollOwner = pollOwnerId == event.senderId
|
||||
|
||||
|
|
Loading…
Reference in a new issue