Use new server params for group log fetch

This commit is contained in:
Fedor Indutny 2022-02-04 13:42:20 -08:00 committed by GitHub
parent 0d19f9131b
commit 6de2710841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 17 deletions

View file

@ -28,6 +28,7 @@ import type * as Attachment from '../types/Attachment';
import type { UUID, UUIDStringType } from '../types/UUID';
import type {
ChallengeType,
GetGroupLogOptionsType,
GroupCredentialsType,
GroupLogResponseType,
MultiRecipient200ResponseType,
@ -2134,10 +2135,10 @@ export default class MessageSender {
}
async getGroupLog(
startVersion: number | undefined,
options: Readonly<GroupCredentialsType>
options: GetGroupLogOptionsType,
credentials: GroupCredentialsType
): Promise<GroupLogResponseType> {
return this.server.getGroupLog(startVersion, options);
return this.server.getGroupLog(options, credentials);
}
async getGroupAvatar(key: string): Promise<Uint8Array> {