Context menu for left pane list items
This commit is contained in:
parent
02dedc7157
commit
f61d8f38b0
43 changed files with 1046 additions and 110 deletions
|
@ -203,6 +203,7 @@ export async function toContactRecord(
|
|||
contactRecord.systemNickname = systemNickname;
|
||||
}
|
||||
contactRecord.blocked = conversation.isBlocked();
|
||||
contactRecord.hidden = conversation.get('removalStage') !== undefined;
|
||||
contactRecord.whitelisted = Boolean(conversation.get('profileSharing'));
|
||||
contactRecord.archived = Boolean(conversation.get('isArchived'));
|
||||
contactRecord.markedUnread = Boolean(conversation.get('markedUnread'));
|
||||
|
@ -1083,6 +1084,18 @@ export async function mergeContactRecord(
|
|||
storageVersion,
|
||||
});
|
||||
|
||||
if (contactRecord.hidden) {
|
||||
await conversation.removeContact({
|
||||
viaStorageServiceSync: true,
|
||||
shouldSave: false,
|
||||
});
|
||||
} else {
|
||||
await conversation.restoreContact({
|
||||
viaStorageServiceSync: true,
|
||||
shouldSave: false,
|
||||
});
|
||||
}
|
||||
|
||||
conversation.setMuteExpiration(
|
||||
getTimestampFromLong(contactRecord.mutedUntilTimestamp),
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue