Skip to content

Commit

Permalink
add chat message mixpanel event
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmohsin7 committed Nov 15, 2024
1 parent 3825401 commit 6c6db8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/pages/chat/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import 'package:friend_private/providers/connectivity_provider.dart';
import 'package:friend_private/providers/home_provider.dart';
import 'package:friend_private/providers/memory_provider.dart';
import 'package:friend_private/providers/message_provider.dart';
import 'package:friend_private/utils/analytics/mixpanel.dart';
import 'package:friend_private/widgets/dialog.dart';
import 'package:gradient_borders/gradient_borders.dart';
import 'package:provider/provider.dart';
Expand Down Expand Up @@ -317,6 +318,7 @@ class ChatPageState extends State<ChatPage> with AutomaticKeepAliveClientMixin {
}

_sendMessageUtil(String message) async {
MixpanelManager().chatMessageSent(message);
context.read<MessageProvider>().setSendingMessage(true);
String? appId =
SharedPreferencesUtil().selectedChatAppId == 'no_selected' ? null : SharedPreferencesUtil().selectedChatAppId;
Expand Down

0 comments on commit 6c6db8c

Please sign in to comment.