mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Message queuing : use redactEvent on timeline instead of room.
This commit is contained in:
+8
-4
@@ -68,8 +68,12 @@ class PollRepository @Inject constructor(
|
||||
|
||||
suspend fun deletePoll(
|
||||
pollStartId: EventId,
|
||||
): Result<Unit> =
|
||||
room.redactEvent(
|
||||
eventId = pollStartId,
|
||||
)
|
||||
): Result<Boolean> =
|
||||
timelineProvider
|
||||
.getActiveTimeline()
|
||||
.redactEvent(
|
||||
eventId = pollStartId,
|
||||
transactionId = null,
|
||||
reason = null,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user