redialChatCallMember method
Redials a User who left or declined the ongoing ChatCall in the specified Chat-group by the authenticated MyUser.
For using this mutation the authenticated MyUser must be a member of the ongoing ChatCall.
Redialed User should see the ongoing ChatCall appearing in his incomingCallsTopEvents again.
Authentication
Mandatory.
Result
One of the following ChatCallEvents may be produced on success:
Idempotent
Succeeds as no-op (and returns no ChatEvent) if the redialed User didn't decline or leave the ChatCall yet, or has been redialed already.
Implementation
Future<ChatCallEventsVersionedMixin?> redialChatCallMember(
ChatId chatId,
UserId memberId,
) async {
Log.debug('redialChatCallMember($chatId, $memberId)', '$runtimeType');
final variables = RedialChatCallMemberArguments(
chatId: chatId,
memberId: memberId,
);
final QueryResult result = await client.mutate(
MutationOptions(
operationName: 'RedialChatCallMember',
document: RedialChatCallMemberMutation(variables: variables).document,
variables: variables.toJson(),
),
onException:
(data) => RedialChatCallMemberException(
(RedialChatCallMember$Mutation.fromJson(data).redialChatCallMember
as RedialChatCallMember$Mutation$RedialChatCallMember$RedialChatCallMemberError)
.code,
),
);
return (RedialChatCallMember$Mutation.fromJson(
result.data!,
).redialChatCallMember
as ChatCallEventsVersionedMixin?);
}