forked from Henry-Hiles/nexus
Leave room support, persist last room, fixes
This commit is contained in:
parent
f7c6c3bb6a
commit
7dfd47a404
17 changed files with 312 additions and 136 deletions
|
|
@ -11,6 +11,7 @@ import "package:nexus/models/session_backup.dart";
|
|||
|
||||
class ClientController extends AsyncNotifier<Client> {
|
||||
static const sessionBackupKey = "sessionBackup";
|
||||
|
||||
@override
|
||||
Future<Client> build() async {
|
||||
if (!voz.isInitialized()) await voz_fl.init();
|
||||
|
|
@ -43,10 +44,6 @@ class ClientController extends AsyncNotifier<Client> {
|
|||
);
|
||||
}
|
||||
|
||||
ref.onDispose(
|
||||
client.onRoomState.stream.listen((_) => ref.notifyListeners()).cancel,
|
||||
);
|
||||
|
||||
return client;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue