Remove isPrivate, isMe, isGroupV1, isGroupV2 from model
This commit is contained in:
parent
eaf4036fc8
commit
d4875fd8f4
16 changed files with 377 additions and 267 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue