refactor: Replace stories feature with presence status msg

This commit is contained in:
Krille 2023-12-22 17:15:14 +01:00
commit 895de76e70
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
21 changed files with 364 additions and 2386 deletions

View file

@ -31,7 +31,6 @@ import 'package:http/http.dart' as http;
import 'package:matrix/matrix.dart';
import 'package:unifiedpush/unifiedpush.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions/client_stories_extension.dart';
import 'package:fluffychat/utils/push_helper.dart';
import 'package:fluffychat/widgets/fluffy_chat_app.dart';
import '../config/app_config.dart';
@ -314,14 +313,7 @@ class BackgroundPush {
}
await client.roomsLoading;
await client.accountDataLoading;
final isStory = client
.getRoomById(roomId)
?.getState(EventTypes.RoomCreate)
?.content
.tryGet<String>('type') ==
ClientStoriesExtension.storiesRoomType;
FluffyChatApp.router
.go('/${isStory ? 'rooms/stories' : 'rooms'}/$roomId');
FluffyChatApp.router.go('/rooms/$roomId');
} catch (e, s) {
Logs().e('[Push] Failed to open room', e, s);
}