@dubsdotapp/expo 0.5.27 → 0.5.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8808,7 +8808,7 @@ function ChatProvider({ children, autoConnect = true }) {
8808
8808
  const refreshMessages = (0, import_react49.useCallback)(async () => {
8809
8809
  try {
8810
8810
  const res = await client.getChatMessages({ limit: 30 });
8811
- setMessages(res.messages);
8811
+ setMessages([...res.messages].reverse());
8812
8812
  } catch (err) {
8813
8813
  console.error("[Dubs:ChatProvider] Failed to load messages:", err);
8814
8814
  }