4971 add issyncenabled toggle in messaging settings (#4995)

- Closes #4971
- Fix calendar import to take isSyncEnabled into account
This commit is contained in:
bosiraphael
2024-04-17 13:35:23 +02:00
committed by GitHub
parent 67db7d85c0
commit 3024e04a1c
16 changed files with 147 additions and 97 deletions

View File

@ -4,6 +4,6 @@ export type MessageChannel = {
id: string;
handle: string;
isContactAutoCreationEnabled?: boolean;
isSynced?: boolean;
isSyncEnabled: boolean;
visibility: InboxSettingsVisibilityValue;
};

View File

@ -57,7 +57,9 @@ export const SettingsAccountsMessageChannelsListCard = () => {
...messageChannel,
syncStatus: messageChannel.connectedAccount?.authFailedAt
? 'failed'
: 'synced',
: messageChannel.isSyncEnabled
? 'synced'
: 'notSynced',
}),
);