changeContactName method
- ChatContactId id,
- UserName name
Updates the name
of the specified ChatContact in the authenticated
MyUser's address book.
Authentication
Mandatory.
Result
Only the following ChatContactEvent may be produced on success:
Idempotent
Succeeds as no-op (and returns no ChatContactEvent) if the specified ChatContact has such name already.
Implementation
Future<ChatContactEventsVersionedMixin> changeContactName(
ChatContactId id,
UserName name,
) async {
throw UnimplementedError();
// Log.debug('changeContactName($id, $name)', '$runtimeType');
// final variables = UpdateChatContactNameArguments(id: id, name: name);
// final QueryResult result = await client.mutate(
// MutationOptions(
// operationName: 'UpdateChatContactName',
// document: UpdateChatContactNameMutation(variables: variables).document,
// variables: variables.toJson(),
// ),
// onException: (data) => UpdateChatContactNameException(
// (UpdateChatContactName$Mutation.fromJson(data).updateChatContactName
// as UpdateChatContactName$Mutation$UpdateChatContactName$UpdateChatContactNameError)
// .code),
// );
// return UpdateChatContactName$Mutation.fromJson(result.data!)
// .updateChatContactName as ChatContactEventsVersionedMixin;
}