mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Support endorsements for group 1:1 sends
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -5,10 +5,15 @@ import * as log from '../logging/log';
|
||||
import { profileService } from '../services/profiles';
|
||||
import type { ServiceIdString } from '../types/ServiceId';
|
||||
|
||||
export async function getProfile(
|
||||
serviceId?: ServiceIdString,
|
||||
e164?: string
|
||||
): Promise<void> {
|
||||
export async function getProfile({
|
||||
serviceId,
|
||||
e164,
|
||||
groupId,
|
||||
}: {
|
||||
serviceId: ServiceIdString | null;
|
||||
e164: string | null;
|
||||
groupId: string | null;
|
||||
}): Promise<void> {
|
||||
const c = window.ConversationController.lookupOrCreate({
|
||||
serviceId,
|
||||
e164,
|
||||
@@ -19,5 +24,5 @@ export async function getProfile(
|
||||
return;
|
||||
}
|
||||
|
||||
return profileService.get(c.id);
|
||||
return profileService.get(c.id, groupId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user