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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}