mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix compilation warnings.
This commit is contained in:
+3
@@ -14,6 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@file:OptIn(ExperimentalCoroutinesApi::class)
|
||||||
|
|
||||||
package io.element.android.libraries.matrix.impl
|
package io.element.android.libraries.matrix.impl
|
||||||
|
|
||||||
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
|
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
|
||||||
@@ -44,6 +46,7 @@ import io.element.android.libraries.matrix.impl.verification.RustSessionVerifica
|
|||||||
import io.element.android.libraries.sessionstorage.api.SessionStore
|
import io.element.android.libraries.sessionstorage.api.SessionStore
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
import kotlinx.coroutines.flow.MutableSharedFlow
|
import kotlinx.coroutines.flow.MutableSharedFlow
|
||||||
import kotlinx.coroutines.flow.filter
|
import kotlinx.coroutines.flow.filter
|
||||||
|
|||||||
-3
@@ -105,9 +105,6 @@ class DefaultPushHandler @Inject constructor(
|
|||||||
Timber.tag(loggerTag.value).d("## handleInternal()")
|
Timber.tag(loggerTag.value).d("## handleInternal()")
|
||||||
}
|
}
|
||||||
|
|
||||||
pushData.roomId ?: return
|
|
||||||
pushData.eventId ?: return
|
|
||||||
|
|
||||||
val clientSecret = pushData.clientSecret
|
val clientSecret = pushData.clientSecret
|
||||||
val userId = if (clientSecret == null) {
|
val userId = if (clientSecret == null) {
|
||||||
// Should not happen. In this case, restore default session
|
// Should not happen. In this case, restore default session
|
||||||
|
|||||||
+1
@@ -60,6 +60,7 @@ class StateMachine<Event : Any, State : Any>(
|
|||||||
currentStateConfig?.onEnter?.invoke(nextState)
|
currentStateConfig?.onEnter?.invoke(nextState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
private fun <E : Event> findMatchingRoute(event: E): StateMachineRoute<E, State, State>? {
|
private fun <E : Event> findMatchingRoute(event: E): StateMachineRoute<E, State, State>? {
|
||||||
val routesForEvent = routes.filter { it.eventType.isInstance(event) }
|
val routesForEvent = routes.filter { it.eventType.isInstance(event) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user