GroupV2: Log from/to revision when applying full group state

This commit is contained in:
Scott Nonnenberg 2021-02-19 10:40:41 -08:00 committed by Josh Perez
parent 79ddd48c28
commit 733c86ee8e

View file

@ -1,4 +1,4 @@
// Copyright 2020 Signal Messenger, LLC // Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only // SPDX-License-Identifier: AGPL-3.0-only
import { import {
@ -2905,6 +2905,11 @@ async function getCurrentGroupState({
logId logId
); );
const oldVersion = group.version;
const newVersion = decryptedGroupState.version;
window.log.info(
`getCurrentGroupState/${logId}: Applying full group state, from version ${oldVersion} to ${newVersion}.`
);
const newAttributes = await applyGroupState({ const newAttributes = await applyGroupState({
group, group,
groupState: decryptedGroupState, groupState: decryptedGroupState,