mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
hotfix: initWithStore
This commit is contained in:
parent
9b572f59a6
commit
2f8491b41b
@ -85,10 +85,8 @@ class MatrixState extends State<Matrix> {
|
|||||||
void _initWithStore() async {
|
void _initWithStore() async {
|
||||||
var initLoginState = client.onLoginStateChanged.stream.first;
|
var initLoginState = client.onLoginStateChanged.stream.first;
|
||||||
try {
|
try {
|
||||||
client.database = await getDatabase(client).timeout(
|
client.database = await getDatabase(client);
|
||||||
Duration(seconds: 15),
|
await client.connect();
|
||||||
);
|
|
||||||
client.connect();
|
|
||||||
if (await initLoginState == LoginState.logged && PlatformInfos.isMobile) {
|
if (await initLoginState == LoginState.logged && PlatformInfos.isMobile) {
|
||||||
await FirebaseController.setupFirebase(
|
await FirebaseController.setupFirebase(
|
||||||
this,
|
this,
|
||||||
|
@ -31,7 +31,6 @@ Future<Database> getDatabase(Client client) async {
|
|||||||
filename: 'moor.sqlite',
|
filename: 'moor.sqlite',
|
||||||
password: password,
|
password: password,
|
||||||
);
|
);
|
||||||
debugPrint('[Moor] Database has been created');
|
|
||||||
if (needMigration) {
|
if (needMigration) {
|
||||||
debugPrint('[Moor] Start migration');
|
debugPrint('[Moor] Start migration');
|
||||||
await migrate(client.clientName, _db, store);
|
await migrate(client.clientName, _db, store);
|
||||||
|
Loading…
Reference in New Issue
Block a user