Skip to content

Commit

Permalink
Merge pull request #2622 from nextcloud/fix/talk_app/silence-message-…
Browse files Browse the repository at this point in the history
…polling-timeout-exception
  • Loading branch information
provokateurin authored Nov 1, 2024
2 parents d78b851 + 2fd52ba commit e4d4523
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,15 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc {
} catch (error, stackTrace) {
if (error case DynamiteStatusCodeException(statusCode: 304)) {
log.info('Polling returned no new messages');
} else {
} else if (error is! TimeoutException) {
log.info(
'Error while waiting for new chat messages',
error,
stackTrace,
);

// Don't spam the server if the error persists
await Future<void>.delayed(const Duration(seconds: 10));
}
}
}
Expand Down

0 comments on commit e4d4523

Please sign in to comment.