refactor: Use correct Matrix instance
This commit is contained in:
parent
ecb2f0fe52
commit
af71649da6
3 changed files with 12 additions and 15 deletions
|
|
@ -139,8 +139,7 @@ class ChatView extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
controller.matrix ??= Matrix.of(context);
|
||||
final client = controller.matrix!.client;
|
||||
final client = Matrix.of(context).client;
|
||||
controller.sendingClient ??= client;
|
||||
controller.room = controller.sendingClient!.getRoomById(controller.roomId!);
|
||||
controller.readMarkerEventId ??= controller.room!.fullyRead;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue