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

View File

@@ -2,11 +2,12 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { ConversationModel } from '../models/conversations';
import { isMe } from './whatTypeOfConversation';
export async function shouldRespondWithProfileKey(
sender: ConversationModel
): Promise<boolean> {
if (sender.isMe() || !sender.getAccepted() || sender.isBlocked()) {
if (isMe(sender.attributes) || !sender.getAccepted() || sender.isBlocked()) {
return false;
}