Storage Service: Don't create groups from incoming v1 records
This commit is contained in:
parent
67058e27bb
commit
c369363e10
1 changed files with 12 additions and 4 deletions
|
@ -133,10 +133,18 @@ async function mergeGroupV1Record(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const conversation = await window.ConversationController.getOrCreateAndWait(
|
const groupId = groupV1Record.id.toBinary();
|
||||||
groupV1Record.id.toBinary(),
|
|
||||||
'group'
|
// We do a get here because we don't get enough information from just this source to
|
||||||
);
|
// be able to do the right thing with this group. So we'll update the local group
|
||||||
|
// record if we have one; otherwise we'll just drop this update.
|
||||||
|
const conversation = window.ConversationController.get(groupId);
|
||||||
|
if (!conversation) {
|
||||||
|
window.log.warn(
|
||||||
|
`storageService.mergeGroupV1Record: No conversation for group(${groupId})`
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
conversation.set({
|
conversation.set({
|
||||||
isArchived: Boolean(groupV1Record.archived),
|
isArchived: Boolean(groupV1Record.archived),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue