refactored and condensed technical documentation and comments across the codebase to improve readability

This commit is contained in:
2026-07-06 23:17:06 +02:00
parent c48f5ef215
commit a19b67eb84
27 changed files with 99 additions and 193 deletions
+5 -7
View File
@@ -147,13 +147,11 @@ class PushRenderer {
bool alert = true,
}) async {
if (messages.isEmpty) return;
// A silent render only ever UPDATES an existing card (delete-push shrunk
// the thread, late avatar arrived, failed reply needs its spinner
// stopped). If the card is verifiably gone meanwhile (reply/mark-read
// cleanup cancelled it, or the user swiped it away), re-posting would
// resurrect it — and Android would re-attach a pending inline reply on
// top. Probe failure (null) still renders: stopping a possible reply
// spinner outweighs a rare resurrection.
// A silent render only UPDATES an existing card. If the card is verifiably
// gone (cleanup cancelled it or the user swiped it away), re-posting would
// resurrect it — with Android re-attaching a pending inline reply on top.
// Probe failure (null) still renders: stopping a possible reply spinner
// outweighs a rare resurrection.
if (!alert && await _isChatNotificationActive(chatToken) == false) {
debugPrint('PushRenderer: skip silent re-render, card gone ($chatToken)');
return;