TsgcWSPClient_E2EE › Events › OnE2EEUserDeleted
Fired when a user is removed from the E2EE user list.
property OnE2EEUserDeleted: TsgcWSE2EEClientOnUserDeleted;
// TsgcWSE2EEClientOnUserDeleted = procedure(Sender: TObject; const aUserId: string) of object
—
Notifies that the user identified by aUserId has been removed from the server. Sessions established with this user are invalidated and subsequent SendDirectMessage calls targeting it will fail. Update the UI contact list accordingly.
procedure TForm1.oE2EEE2EEUserDeleted(Sender: TObject; const aUserId: string);
var
vIdx: Integer;
begin
vIdx := cbxContacts.Items.IndexOf(aUserId);
if vIdx >= 0 then
cbxContacts.Items.Delete(vIdx);
end;