fix some bugs

This commit is contained in:
Henry Hiles 2025-12-24 16:31:30 -05:00
commit 3d6d610f19
No known key found for this signature in database
4 changed files with 7 additions and 6 deletions

View file

@ -103,7 +103,6 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S
## Known Bugs
- Sometimes the app refreshes, I believe due to some controllers invalidating. This needs investigation as to why it happens.
- Sometimes links don't parse properly, this is apparent in the Maunium Ping Room. We might possibly need a regex change.
## Development

View file

@ -14,7 +14,9 @@ class EventsController extends AsyncNotifier<GetRoomEventsResponse> {
from: from,
limit: 32,
);
ref.watch(FromController.provider(room).notifier).set(response.end);
if (ref.mounted) {
ref.watch(FromController.provider(room).notifier).set(response.end);
}
return response;
}

View file

@ -14,9 +14,7 @@ class RoomChatController extends AsyncNotifier<ChatController> {
@override
Future<ChatController> build() async {
final response = await ref.watch(
EventsController.provider(room).selectAsync((a) => a),
);
final response = await ref.watch(EventsController.provider(room).future);
ref.onDispose(
room.client.onTimelineEvent.stream.listen((event) async {

View file

@ -87,7 +87,9 @@ class TopWidget extends ConsumerWidget {
);
},
),
if (alwaysShow || groupStatus?.isFirst != false)
if (alwaysShow ||
groupStatus?.isFirst != false ||
message.metadata?["reply"] != null)
InkWell(
onTap: () =>
showAboutDialog(context: context), // TODO: Show user profile