Sending queue : adjust to match the latest rust api
This commit is contained in:
parent
5838bffcfa
commit
9250745333
10 changed files with 169 additions and 123 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,5 +335,7 @@ interface MatrixRoom : Closeable {
|
|||
*/
|
||||
suspend fun sendCallNotificationIfNeeded(): Result<Unit>
|
||||
|
||||
suspend fun setSendQueueEnabled(enabled: Boolean)
|
||||
|
||||
override fun close() = destroy()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue