git » sdk » commit b800d5d

Call logs aren't really messages

author Stephen Paul Weber
2026-09-30 13:32:18 UTC
committer Stephen Paul Weber
2026-09-30 13:32:18 UTC
parent 08f241ae3407fceabbddad9d5051363221255180

Call logs aren't really messages

They don't track state properly because it's not relevant to them and we
don't want to resend them or marked them as failed anyway probably? They
are often "received" even if we sent them due to how we correct both
sides and this makes the updateMessageStatus call not even work

borogove/Client.hx +1 -1

diff --git a/borogove/Client.hx b/borogove/Client.hx
index 5b9feac..641f5c7 100644
--- a/borogove/Client.hx
+++ b/borogove/Client.hx
@@ -2046,7 +2046,7 @@ class Client extends EventEmitter {
 		);
 
 		persistence.getMessagesByStatus(accountId(), MessagePending).then(messages -> {
-			for (m in messages) {
+			for (m in messages.filter(m -> m.type != MessageCall)) {
 				if (m.timestamp < tooOld) {
 					persistence.updateMessageStatus(accountId(), m.localId, MessageFailedToSend, "Message too old to auto-resend").then(newM -> {
 						notifyMessageHandlers(newM, StatusEvent);