Send group call events to linked devices

This commit is contained in:
Evan Hahn 2020-12-09 16:02:50 -06:00 committed by GitHub
parent 496bdec35d
commit a142cb522e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 13 deletions

View file

@ -1143,15 +1143,19 @@ export default class MessageSender {
);
}
async sendGroupCallUpdate(
{ groupV2, eraId }: { groupV2: GroupV2InfoType; eraId: string },
sendGroupCallUpdate(
{
groupV2,
eraId,
timestamp,
}: { groupV2: GroupV2InfoType; eraId: string; timestamp: number },
options?: SendOptionsType
): Promise<void> {
await this.sendMessageToGroup(
): Promise<CallbackResultType> {
return this.sendMessageToGroup(
{
groupV2,
groupCallUpdate: { eraId },
timestamp: Date.now(),
timestamp,
},
options
);