mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Snackbar: SnackbarDispatcher.post does not need to be suspend.
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ class SnackbarDispatcher {
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun post(message: SnackbarMessage) {
|
||||
fun post(message: SnackbarMessage) {
|
||||
if (snackBarMessageQueue.isEmpty()) {
|
||||
snackBarMessageQueue.add(message)
|
||||
if (queueMutex.isLocked) queueMutex.unlock()
|
||||
|
||||
Reference in New Issue
Block a user