parent
e0b5dc58d0
commit
8fbfcde9c5
1 changed files with 639 additions and 102 deletions
|
|
@ -307,6 +307,15 @@ class ClientController extends AsyncNotifier<int> {
|
|||
}
|
||||
}
|
||||
|
||||
Future<void> setProfileField(String field, Object? value) => _sendCommand(
|
||||
"set_profile_field",
|
||||
{
|
||||
"field": field,
|
||||
// gomuks deletes the field when the value is omitted, not when it's null
|
||||
"value": ?value,
|
||||
},
|
||||
);
|
||||
|
||||
Future<void> reportEvent(ReportRequest request) =>
|
||||
_sendCommand("report_event", request.toJson());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue