Skip to content

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

TypeScript fluxerfluxerapp

fix(app): avoid throwing on handled message load error (#16)

hampus-fluxerbb4ab2bcaad8
diff --git a/fluxer_app/src/actions/MessageActionCreators.tsx b/fluxer_app/src/actions/MessageActionCreators.tsx
index 4f22020f7..97632e3c8 100644
--- a/fluxer_app/src/actions/MessageActionCreators.tsx
+++ b/fluxer_app/src/actions/MessageActionCreators.tsx
@@ -264,7 +264,7 @@ export const fetchMessages = async (
} catch (error) {
logger.error(`Failed to fetch messages for channel ${channelId}:`, error);
MessageStore.handleLoadMessagesFailure({channelId});
- throw error;
+ return [];
}
})();