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

@ -324,12 +324,6 @@ class RustMatrixRoom(
return liveTimeline.sendMessage(body, htmlBody, mentions)
}
override suspend fun redactEvent(eventId: EventId, reason: String?) = withContext(roomDispatcher) {
runCatching {
innerRoom.redact(eventId.value, reason)
}
}
override suspend fun leave(): Result<Unit> = withContext(roomDispatcher) {
runCatching {
innerRoom.leave()