fix some bugs
This commit is contained in:
parent
7ce4d3c9fb
commit
3d6d610f19
4 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue