Skip to content

Commit

Permalink
Fix issue with sync error message on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Jul 20, 2024
1 parent b01891c commit a416e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iosApp/Source/Accounts/Dropbox/DropboxSyncScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct DropboxSyncScreen: View {
.task {
do {
let stream = asyncSequence(for: viewModel.dropboxSyncMessageState)
for try await message in stream where message is DropboxSynMessages.Error {
for try await message in stream where message is DropboxSynMessages.Error {
self.appState.snackbarQueue.append(
SnackbarData(
title: feedFlowStrings.dropboxSyncError,
Expand Down
2 changes: 1 addition & 1 deletion iosApp/Source/Home/HomeScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ struct HomeScreen: View {
.task {
do {
let stream = asyncSequence(for: homeViewModel.syncMessageQueue)
for try await message in stream {
for try await message in stream where message.isError() {
self.appState.snackbarQueue.append(
SnackbarData(
title: feedFlowStrings.errorAccountSync,
Expand Down

0 comments on commit a416e74

Please sign in to comment.