TsgcWSPClient_E2EEEvents › OnE2EEGroupMessageText

OnE2EEGroupMessageText Event

Fired when a decrypted group text message is received.

Syntax

property OnE2EEGroupMessageText: TsgcWSE2EEOnGroupMessageText;
// TsgcWSE2EEOnGroupMessageText = procedure(Sender: TObject; const aGroup, aFrom, aText: string) of object

Default Value

Remarks

Fired for each decrypted group text message the local user receives as a member of aGroup. aFrom is the sender UserId; aText is the plain payload originally passed to SendGroupMessage. The event is not fired for messages sent by the local user.

Example

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

Back to Events