TsgcWSPClient_E2EEEvents › OnE2EEMessageAck

OnE2EEMessageAck Event

Fired when the server or peer acknowledges a direct message.

Syntax

property OnE2EEMessageAck: TsgcWSE2EEOnMessageAckEvent;
// TsgcWSE2EEOnMessageAckEvent = procedure(Sender: TObject; const aId, aFrom, aTo, aState: string) of object

Default Value

Remarks

Fired for each delivery state change of a direct message. aId matches the identifier returned by SendDirectMessage, aFrom/aTo identify the sender and recipient, and aState reports the current step (sent, delivered, read...). The receiving side emits these only when E2EE_Options.Ack.RcvDirectMessage is enabled.

Example

procedure TForm1.oE2EEE2EEMessageAck(Sender: TObject; const aId, aFrom, aTo, aState: string);
begin
  Log(Format('msg %s %s->%s state=%s', [aId, aFrom, aTo, aState]));
end;

Back to Events