Skip to content

Instantly share code, notes, and snippets.

@pinkeshdarji
Created June 25, 2021 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinkeshdarji/fa549e80c8613dbdc880cc69bbfb0b76 to your computer and use it in GitHub Desktop.
Save pinkeshdarji/fa549e80c8613dbdc880cc69bbfb0b76 to your computer and use it in GitHub Desktop.
MessageInput(
disableAttachments: true,
preMessageSending: (Message message) async {
String encryptedMessage = await AppE2EE().encrypt(message.text);
Message newmessage = message.copyWith(text: encryptedMessage);
return newmessage;
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment