refactored and condensed technical documentation and comments across the codebase to improve readability
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user