TsgcWSPClient_E2EE › Events › OnE2EEMessageText
Fired when a decrypted direct text message is received from another user.
property OnE2EEMessageText: TsgcWSE2EEOnMessageText;
// TsgcWSE2EEOnMessageText = procedure(Sender: TObject; const aFrom, aText: string) of object
—
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.
procedure TForm1.oE2EEE2EEMessageText(Sender: TObject; const aFrom, aText: string);
begin
Log(Format('%s: %s', [aFrom, aText]));
end;