git » sdk » commit a6dce81

Sender is also a member

author Stephen Paul Weber
2026-05-25 02:58:30 UTC
committer Stephen Paul Weber
2026-05-25 02:58:30 UTC
parent fa01eafb019514694d607ddcc6c560d9d08675ad

Sender is also a member

But they maybe didn't "recipient" themself.

borogove/Chat.hx +1 -0

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 522ecdc..1dd6a5d 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -1142,6 +1142,7 @@ class DirectChat extends Chat {
 		// If last message at load time is a sent message, this may not include everyone
 		if (_fullCounterparts.length < 2 && (message?.recipients?.length ?? 0) > 1) {
 			_fullCounterparts = message.recipients.map(r -> r.asBare().asString()).filter(id -> id != client.accountId());
+			if (!_fullCounterparts.contains(message.senderId)) _fullCounterparts.push(message.senderId);
 		}
 		return super.setLastMessage(message);
 	}