TsgcWSPClient_E2EEEvents › OnE2EEMessageText

OnE2EEMessageText Event

Fired when a decrypted direct text message is received from another user.

Syntax

property OnE2EEMessageText: TsgcWSE2EEOnMessageText;
// TsgcWSE2EEOnMessageText = procedure(Sender: TObject; const aFrom, aText: string) of object

Default Value

Remarks

Fired after the incoming direct message has been successfully decrypted with the session key negotiated with aFrom. aText is the plain text payload originally passed to SendDirectMessage on the peer.

Example

procedure TForm1.oE2EEE2EEMessageText(Sender: TObject; const aFrom, aText: string);
begin
  Log(Format('%s: %s', [aFrom, aText]));
end;

Back to Events