borogove

created pr with borogove/outgoing-e2ee-status.1 on 2026-11-11T22:04:33Z · by 9e834e0d
added borogove/outgoing-e2ee-status.2 on 2026-11-13T16:36:04Z · by 3c31bc8c
1: 9b2b378 = 1: b641e78 Record if a send message was e2ee
-: ------- > 2: 9dbe688 review comments
commented on 2026-11-13T16:36:05Z · by 3c31bc8c
borogove/Chat.hx:284 — I think this would read better like: return switch (e2eePreference) { case OMEMO: EncryptionInfo.forSent(NS.OMEMO); case NoE2EE: null; case Default: defaultE2ee(); };
added borogove/outgoing-e2ee-status.3 on 2026-11-16T16:26:38Z · by 9e834e0d
1: b641e78 ! 1: a6d1b46 Record if a send message was e2ee
2: 9dbe688 = 2: 8565503 review comments
-: ------- > 3: 6b1d111 comments
cmds
checkout latest patchset:
ssh pr.pico.sh pull borogove:outgoing-e2ee-status | git am -3
checkout specific patchset revision:
ssh pr.pico.sh pull borogove:outgoing-e2ee-status [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh borogove:outgoing-e2ee-status
add comment to patch request:
ssh pr.pico.sh comment borogove:outgoing-e2ee-status "lgtm!"

Patchset borogove/outgoing-e2ee-status.3 on 2026-11-16T16:26:38Z · commit 8565503

review comments
Eric Roberts 2026-11-13T16:36:01Z
Semantic diff summary
0 added, 0 modified, 0 signature changed, 0 removed across 0 analyzed files (2 files skipped: unsupported file type)
+2 -0 borogove/Chat.hx #
......@@ -1428,6 +1428,7 @@ class DirectChat extends Chat {
14281428 case NoE2EE:
14291429 return Promise.resolve({ stanza: stanza, encryptionInfo: null });
14301430 case Default:
1431+ // Instead of reassigning so this becomes impossible can we just call the default preference in here? Pretty much same suggestion as I put on intendedEncryption
14311432 throw "Impossible";
14321433 }
14331434 #end
......@@ -2534,6 +2535,7 @@ class Channel extends Chat {
25342535 sortId: { method: "between", lower: lower, upper: null },
25352536 };
25362537 }
2538+ // how would it already have encryption?
25372539 if (message.encryption == null) message.encryption = intendedEncryption(e2eePreference);
25382540 return message;
25392541 }
+1 -0 borogove/Client.hx #
......@@ -2230,6 +2230,7 @@ class Client extends EventEmitter {
22302230 // Don't silently downgrade a message that was meant to be encrypted
22312231 var preference:OutgoingE2EEPreference = Default;
22322232 #if !NO_OMEMO
2233+ // so what happens in NO_OMEMO case now? a failure?
22332234 if (m.encryption != null) preference = OMEMO;
22342235 #end
22352236 chat.sendMessageStanza(stanza, null, preference).then((encryption) -> applySentEncryption(chat, ChatMessageBuilder.fromMessage(m), encryption));
Back to top