Message queuing : use redactEvent on timeline instead of room.

This commit is contained in:
ganfra 2024-06-06 15:23:28 +02:00
parent 41e5a6dd40
commit 7100a9d619
5 changed files with 14 additions and 28 deletions

View file

@ -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,
)
}