mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-22 09:10:44 +01:00
feat: Init all clients
This commit is contained in:
parent
d1236c510d
commit
4c3907a699
@ -90,8 +90,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
||||
|
||||
void _initWithStore() async {
|
||||
try {
|
||||
await client.init();
|
||||
await Future.wait(widget.clients.map((client) => client.init()));
|
||||
if (client.isLogged()) {
|
||||
// TODO: Figure out how this works in multi account
|
||||
final statusMsg = await store.getItem(SettingKeys.ownStatusMessage);
|
||||
if (statusMsg?.isNotEmpty ?? false) {
|
||||
Logs().v('Send cached status message: "$statusMsg"');
|
||||
|
Loading…
x
Reference in New Issue
Block a user