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 (_) {