Fix event id of poll replace events.

This commit is contained in:
Onuray Sahin 2022-01-21 18:07:39 +03:00
parent ea9e5183dc
commit a871ce26c2

View file

@ -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()
)