mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Sending queue : adjust to match the latest rust api
This commit is contained in:
+4
-4
@@ -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>
|
||||
}
|
||||
|
||||
+2
@@ -335,5 +335,7 @@ interface MatrixRoom : Closeable {
|
||||
*/
|
||||
suspend fun sendCallNotificationIfNeeded(): Result<Unit>
|
||||
|
||||
suspend fun setSendQueueEnabled(enabled: Boolean)
|
||||
|
||||
override fun close() = destroy()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user