mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-23 17:50: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 {
|
void _initWithStore() async {
|
||||||
try {
|
try {
|
||||||
await client.init();
|
await Future.wait(widget.clients.map((client) => client.init()));
|
||||||
if (client.isLogged()) {
|
if (client.isLogged()) {
|
||||||
|
// TODO: Figure out how this works in multi account
|
||||||
final statusMsg = await store.getItem(SettingKeys.ownStatusMessage);
|
final statusMsg = await store.getItem(SettingKeys.ownStatusMessage);
|
||||||
if (statusMsg?.isNotEmpty ?? false) {
|
if (statusMsg?.isNotEmpty ?? false) {
|
||||||
Logs().v('Send cached status message: "$statusMsg"');
|
Logs().v('Send cached status message: "$statusMsg"');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user