mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 12:30:07 +03:00
Remove coroutine context change for sendStateEvent
Signed-off-by: aqulu <dev@aqu.lu>
This commit is contained in:
parent
c889deaab1
commit
19d421df84
1 changed files with 7 additions and 10 deletions
|
@ -72,16 +72,13 @@ internal class DefaultStateService @AssistedInject constructor(@Assisted private
|
|||
stateKey: String?,
|
||||
body: JsonDict
|
||||
) {
|
||||
withContext(coroutineDispatchers.main) {
|
||||
val params = SendStateTask.Params(
|
||||
roomId = roomId,
|
||||
stateKey = stateKey,
|
||||
eventType = eventType,
|
||||
body = body
|
||||
)
|
||||
|
||||
sendStateTask.execute(params)
|
||||
}
|
||||
val params = SendStateTask.Params(
|
||||
roomId = roomId,
|
||||
stateKey = stateKey,
|
||||
eventType = eventType,
|
||||
body = body
|
||||
)
|
||||
sendStateTask.execute(params)
|
||||
}
|
||||
|
||||
override suspend fun updateTopic(topic: String) {
|
||||
|
|
Loading…
Add table
Reference in a new issue