mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 09:00:06 +00:00
fix clearing of offsync contact
This commit is contained in:
parent
3ee596939d
commit
6c8298fc33
@ -303,7 +303,7 @@ export class ContactModule implements Contact {
|
||||
}
|
||||
|
||||
private async clearCardProfileOffsync(cardId: string) {
|
||||
if (!this.offsyncProfileCard.has(cardId)) {
|
||||
if (this.offsyncProfileCard.has(cardId)) {
|
||||
this.offsyncProfileCard.delete(cardId);
|
||||
await this.store.clearMarker(this.guid, 'offsync_profile_card', cardId);
|
||||
}
|
||||
@ -324,7 +324,7 @@ export class ContactModule implements Contact {
|
||||
}
|
||||
|
||||
private async clearCardChannelOffsync(cardId: string) {
|
||||
if (!this.offsyncChannelCard.has(cardId)) {
|
||||
if (this.offsyncChannelCard.has(cardId)) {
|
||||
this.offsyncChannelCard.delete(cardId);
|
||||
await this.store.clearMarker(this.guid, 'offsync_channel_card', cardId);
|
||||
}
|
||||
@ -345,7 +345,7 @@ export class ContactModule implements Contact {
|
||||
}
|
||||
|
||||
private async clearCardArticleOffsync(cardId: string) {
|
||||
if (!this.offsyncArticleCard.has(cardId)) {
|
||||
if (this.offsyncArticleCard.has(cardId)) {
|
||||
this.offsyncArticleCard.delete(cardId);
|
||||
await this.store.clearMarker(this.guid, 'offsync_article_card', cardId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user