From 681b5b85f9afd561dc159b1103a2f3e097495eb6 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Sun, 1 Feb 2026 13:13:08 -0600 Subject: [PATCH] Add debug logging to _persistReaction to track API response data --- .../lib/screens/post/threaded_conversation_screen.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sojorn_app/lib/screens/post/threaded_conversation_screen.dart b/sojorn_app/lib/screens/post/threaded_conversation_screen.dart index 2ba77d1..0c0f946 100644 --- a/sojorn_app/lib/screens/post/threaded_conversation_screen.dart +++ b/sojorn_app/lib/screens/post/threaded_conversation_screen.dart @@ -871,17 +871,23 @@ class _ThreadedConversationScreenState extends ConsumerState?; final updatedMine = response['my_reactions'] as List?; + + print('DEBUG: Toggle reaction response: $response'); + print('DEBUG: updatedCounts: $updatedCounts'); + print('DEBUG: updatedMine: $updatedMine'); if (updatedCounts != null) { setState(() { _reactionCountsByPost[postId] = updatedCounts .map((key, value) => MapEntry(key, value as int)); + print('DEBUG: Updated local reaction counts: ${_reactionCountsByPost[postId]}'); }); } if (updatedMine != null) { setState(() { _myReactionsByPost[postId] = updatedMine.map((item) => item.toString()).toSet(); + print('DEBUG: Updated local my reactions: ${_myReactionsByPost[postId]}'); }); } } catch (_) {