fix: plural function name
Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
parent
f18dcd08be
commit
38406388b8
|
|
@ -178,7 +178,7 @@ fun ChannelScreen(
|
||||||
viewModel.fetchChannel(channelId)
|
viewModel.fetchChannel(channelId)
|
||||||
|
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
viewModel.listenForWsFrame()
|
viewModel.listenForWsFrames()
|
||||||
}
|
}
|
||||||
|
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue