fix: plural function name

Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
Infi 2023-07-27 17:44:04 +02:00
parent f18dcd08be
commit 38406388b8
2 changed files with 3 additions and 3 deletions

View File

@ -178,7 +178,7 @@ fun ChannelScreen(
viewModel.fetchChannel(channelId) viewModel.fetchChannel(channelId)
coroutineScope.launch { coroutineScope.launch {
viewModel.listenForWsFrame() viewModel.listenForWsFrames()
} }
coroutineScope.launch { coroutineScope.launch {

View File

@ -265,7 +265,7 @@ class ChannelScreenViewModel : ViewModel() {
} }
} }
suspend fun listenForWsFrame() { suspend fun listenForWsFrames() {
withContext(RevoltAPI.realtimeContext) { withContext(RevoltAPI.realtimeContext) {
flow { flow {
while (true) { while (true) {
@ -336,7 +336,7 @@ class ChannelScreenViewModel : ViewModel() {
is RealtimeSocketFrames.Reconnected -> { is RealtimeSocketFrames.Reconnected -> {
Log.d("ChannelScreen", "Reconnected to WS.") Log.d("ChannelScreen", "Reconnected to WS.")
listenForWsFrame() listenForWsFrames()
} }
} }
}.catch { }.catch {