forked from Henry-Hiles/nexus
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
|
## 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.
|
- Sometimes links don't parse properly, this is apparent in the Maunium Ping Room. We might possibly need a regex change.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@ class EventsController extends AsyncNotifier<GetRoomEventsResponse> {
|
||||||
from: from,
|
from: from,
|
||||||
limit: 32,
|
limit: 32,
|
||||||
);
|
);
|
||||||
|
if (ref.mounted) {
|
||||||
ref.watch(FromController.provider(room).notifier).set(response.end);
|
ref.watch(FromController.provider(room).notifier).set(response.end);
|
||||||
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,7 @@ class RoomChatController extends AsyncNotifier<ChatController> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<ChatController> build() async {
|
Future<ChatController> build() async {
|
||||||
final response = await ref.watch(
|
final response = await ref.watch(EventsController.provider(room).future);
|
||||||
EventsController.provider(room).selectAsync((a) => a),
|
|
||||||
);
|
|
||||||
|
|
||||||
ref.onDispose(
|
ref.onDispose(
|
||||||
room.client.onTimelineEvent.stream.listen((event) async {
|
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(
|
InkWell(
|
||||||
onTap: () =>
|
onTap: () =>
|
||||||
showAboutDialog(context: context), // TODO: Show user profile
|
showAboutDialog(context: context), // TODO: Show user profile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue