saveUnsentMessage static method
Saves an unsent message for a specific user or group.
This method stores a message that could not be sent at the moment. It can be used to save messages temporarily until they can be sent. The message is associated with the JID of the user or group.
Parameters:
jid
- The JID (Jabber ID) of the user or group to which the message was intended.
message
- The message text that was not sent.
Returns: A Future that completes when the operation is finished.
Example usage:
await Mirrorfly.saveUnsentMessage(
jid: "user123@example.com",
message: "Hello, this message couldn't be sent earlier!",
);
Implementation
static saveUnsentMessage({required String jid, required String message}) {
return FlyChatFlutterPlatform.instance.saveUnsentMessage(jid, message);
}