mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Fix event id of poll replace events.
This commit is contained in:
parent
ea9e5183dc
commit
a871ce26c2
1 changed files with 2 additions and 1 deletions
|
@ -149,11 +149,12 @@ internal class LocalEchoEventFactory @Inject constructor(
|
|||
relatesTo = RelationDefaultContent(RelationType.REPLACE, targetEventId),
|
||||
newContent = createPollContent(question, options).toContent()
|
||||
)
|
||||
val localId = LocalEcho.createLocalEchoId()
|
||||
return Event(
|
||||
roomId = roomId,
|
||||
originServerTs = dummyOriginServerTs(),
|
||||
senderId = userId,
|
||||
eventId = targetEventId,
|
||||
eventId = localId,
|
||||
type = EventType.POLL_START,
|
||||
content = newContent.toContent()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue