mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Redact beacon info event first to refresh timeline faster
This commit is contained in:
parent
f6415b0a5d
commit
63626b79de
1 changed files with 5 additions and 6 deletions
|
@ -45,6 +45,11 @@ internal class DefaultRedactLiveLocationShareTask @Inject constructor(
|
|||
val relatedEventIds = getRelatedEventIdsOfLive(params.beaconInfoEventId)
|
||||
Timber.d("beacon with id ${params.beaconInfoEventId} has related event ids: ${relatedEventIds.joinToString(", ")}")
|
||||
|
||||
redactEvent(
|
||||
eventId = params.beaconInfoEventId,
|
||||
roomId = params.roomId,
|
||||
reason = params.reason
|
||||
)
|
||||
relatedEventIds.forEach { eventId ->
|
||||
redactEvent(
|
||||
eventId = eventId,
|
||||
|
@ -52,12 +57,6 @@ internal class DefaultRedactLiveLocationShareTask @Inject constructor(
|
|||
reason = params.reason
|
||||
)
|
||||
}
|
||||
|
||||
redactEvent(
|
||||
eventId = params.beaconInfoEventId,
|
||||
roomId = params.roomId,
|
||||
reason = params.reason
|
||||
)
|
||||
}
|
||||
|
||||
private suspend fun getRelatedEventIdsOfLive(beaconInfoEventId: String): List<String> {
|
||||
|
|
Loading…
Add table
Reference in a new issue