Remove isPrivate, isMe, isGroupV1, isGroupV2 from model

This commit is contained in:
Josh Perez
2021-06-07 12:39:13 -04:00
committed by GitHub
parent eaf4036fc8
commit d4875fd8f4
16 changed files with 377 additions and 267 deletions

11
ts/util/deprecated.ts Normal file
View File

@@ -0,0 +1,11 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { getEnvironment, Environment } from '../environment';
import * as log from '../logging/log';
export function deprecated(message?: string): void {
if (getEnvironment() === Environment.Development) {
log.error(new Error(`This method is deprecated: ${message}`));
}
}