Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Brazol committed Jan 28, 2025
1 parent 224082e commit 4cb6ddf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dogfooding/lib/app/app_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {

Future<bool> _handleRemoteMessage(RemoteMessage message) async {
final streamVideo = locator.get<StreamVideo>();
return streamVideo.handleVoipPushNotification(message.data);
return streamVideo.handleRingingFlowNotifications(message.data);
}

class StreamDogFoodingAppContent extends StatefulWidget {
Expand Down
9 changes: 5 additions & 4 deletions packages/stream_video/lib/src/stream_video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,9 @@ class StreamVideo extends Disposable {
);

if (result is Failure) {
_logger.d(() =>
'[onCallEnded] error rejecting incoming call: ${result.error}');
_logger.d(
() => '[onCallEnded] error rejecting incoming call: ${result.error}',
);
}
}
}
Expand All @@ -713,10 +714,10 @@ class StreamVideo extends Disposable {
Map<String, dynamic> payload, {
bool handleMissedCall = true,
}) async {
_logger.d(() => '[handleVoipPushNotification] payload: $payload');
_logger.d(() => '[handleRingingFlowNotifications] payload: $payload');
final manager = pushNotificationManager;
if (manager == null) {
_logger.e(() => '[handleVoipPushNotification] rejected (no manager)');
_logger.e(() => '[handleRingingFlowNotifications] rejected (no manager)');
return false;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:async';

import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down

0 comments on commit 4cb6ddf

Please sign in to comment.