Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(read-state): keep a failed ack dispatch from failing acks (#2350)

Hampusbea4a6dcbcae
diff --git a/fluxer_api/src/api/read_state/ReadStateService.ts b/fluxer_api/src/api/read_state/ReadStateService.ts
index a3fde93f1..600eecea6 100644
--- a/fluxer_api/src/api/read_state/ReadStateService.ts
+++ b/fluxer_api/src/api/read_state/ReadStateService.ts
@@ -46,6 +46,12 @@ export class ReadStateService {
mentionCount: readState.mentionCount,
manual,
version: readState.version,
+ }).catch((error) => {
+ Logger.error(
+ {userId: userId.toString(), channelId: channelId.toString(), error},
+ 'Failed to dispatch MESSAGE_ACK',
+ );
+ return null;
});
}
return readState;