mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Remove isPrivate, isMe, isGroupV1, isGroupV2 from model
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user