Sending queue : adjust to match the latest rust api

This commit is contained in:
ganfra 2024-06-12 15:15:04 +02:00
parent 5838bffcfa
commit 9250745333
10 changed files with 169 additions and 123 deletions

View file

@ -114,11 +114,11 @@ interface MatrixClient : Closeable {
* so it's required to manually re-enable it as soon as
* connectivity is back on the device.
*/
suspend fun setSendingQueueEnabled(enabled: Boolean)
suspend fun setAllSendQueuesEnabled(enabled: Boolean)
/**
* Returns the current status of the sending queue as a [StateFlow].
* If true, the sending queue is enabled.
* Returns a flow of room IDs that have send queue being disabled.
* This flow will emit a new value whenever the send queue is disabled for a room.
*/
fun sendingQueueStatus(): StateFlow<Boolean>
fun sendQueueDisabledFlow(): Flow<RoomId>
}

View file

@ -335,5 +335,7 @@ interface MatrixRoom : Closeable {
*/
suspend fun sendCallNotificationIfNeeded(): Result<Unit>
suspend fun setSendQueueEnabled(enabled: Boolean)
override fun close() = destroy()
}