git » sdk » commit d807ad4

If MAM fails, just return no results

author Stephen Paul Weber
2026-11-17 03:04:07 UTC
committer Stephen Paul Weber
2026-11-17 03:04:07 UTC
parent 8e74e19c8530c810f4f294070ededbc8f545d82c

If MAM fails, just return no results

rather than an error to be caught

borogove/Chat.hx +4 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 0d76b09..1100329 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -255,7 +255,10 @@ abstract class Chat extends EventEmitter {
 					});
 				}
 			});
-			sync.onError(reject);
+			sync.onError((e) -> {
+				trace("fetchFromSync ERROR", e);
+				resolve([]);
+			});
 			sync.fetchNext();
 		});
 	}