fluffychat merge

This commit is contained in:
ggurdin 2026-02-06 09:26:36 -05:00
commit 130788db69
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
4 changed files with 6 additions and 20 deletions

View file

@ -1,3 +1,4 @@
FluffyChat 2.3.0 fixes a possible database corruption bug, also fixes a
major performance leak and introduces polls and threads.
Several other bugs have also been fixed including importing sticker packgs.
FluffyChat 2.4.0 adds a new improved GUI for managing stickers with tutorials how to
easily add your own sticker packs.
It also improves the search and image gallery in chats, especially encrypted chats.
Besides that this update comes with a lot of fixes and improvements under the hood.

View file

@ -785,17 +785,7 @@ class ChatController extends State<ChatPageWithRoom>
}
// Do not send read markers when app is not in foreground
// #Pangea
try {
// Pangea#
if (kIsWeb && !Matrix.of(context).webHasFocus) return;
// #Pangea
} catch (err) {
return;
}
// Pangea#
if (!kIsWeb &&
WidgetsBinding.instance.lifecycleState != AppLifecycleState.resumed) {
if (WidgetsBinding.instance.lifecycleState != AppLifecycleState.resumed) {
return;
}

View file

@ -15,7 +15,6 @@ import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pangea/common/utils/error_handler.dart';
import 'package:fluffychat/utils/client_download_content_extension.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:fluffychat/utils/push_helper.dart';
import 'package:fluffychat/widgets/fluffy_chat_app.dart';
import 'package:fluffychat/widgets/matrix.dart';
@ -28,9 +27,7 @@ extension LocalNotificationsExtension on MatrixState {
void showLocalNotification(Event event) async {
final roomId = event.room.id;
if (activeRoomId == roomId) {
if (kIsWeb && webHasFocus) return;
if (PlatformInfos.isDesktop &&
WidgetsBinding.instance.lifecycleState == AppLifecycleState.resumed) {
if (WidgetsBinding.instance.lifecycleState == AppLifecycleState.resumed) {
return;
}
}

View file

@ -260,8 +260,6 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
});
}
bool webHasFocus = true;
String? get activeRoomId {
final route = FluffyChatApp.router.routeInformationProvider.value.uri.path;
if (!route.startsWith('/rooms/')) return null;