mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
chore: Webrtc follow up fixes
This commit is contained in:
parent
9b7f494542
commit
ed41b924f7
@ -220,7 +220,7 @@ class ChatController extends State<Chat> {
|
||||
}
|
||||
filteredEvents = timeline!.getFilteredEvents(unfolded: unfolded);
|
||||
timeline!.requestKeys();
|
||||
if (room!.hasNewMessages &&
|
||||
if ((room!.hasNewMessages || room!.notificationCount > 0) &&
|
||||
timeline != null &&
|
||||
timeline!.events.isNotEmpty &&
|
||||
Matrix.of(context).webHasFocus) {
|
||||
@ -819,6 +819,8 @@ class ChatController extends State<Chat> {
|
||||
}
|
||||
}
|
||||
|
||||
bool get webrtcIsSupported => PlatformInfos.isMobile;
|
||||
|
||||
int? findChildIndexCallback(Key key, Map<String, int> thisEventsKeyMap) {
|
||||
// this method is called very often. As such, it has to be optimized for speed.
|
||||
if (key is! ValueKey) {
|
||||
@ -953,7 +955,8 @@ class ChatController extends State<Chat> {
|
||||
}
|
||||
final callType = await showModalActionSheet<CallType>(
|
||||
context: context,
|
||||
title: L10n.of(context)!.videoCallsBetaWarning,
|
||||
title: L10n.of(context)!.warning,
|
||||
message: L10n.of(context)!.videoCallsBetaWarning,
|
||||
cancelLabel: L10n.of(context)!.cancel,
|
||||
actions: [
|
||||
SheetAction(
|
||||
|
@ -113,6 +113,7 @@ class ChatView extends StatelessWidget {
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
if (controller.webrtcIsSupported)
|
||||
IconButton(
|
||||
onPressed: controller.onPhoneButtonTap,
|
||||
icon: const Icon(Icons.call_outlined),
|
||||
|
Loading…
Reference in New Issue
Block a user