ReplyUtils class

Utility for validating that a quoted message belongs to the current conversation.

Prevents replying to a message from a different conversation when the user switches chats while a reply preview is still showing.

Constructors

ReplyUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getQuotedMessageId({BaseMessage? quotedMessage, User? user, Group? group}) → int
Returns the quoted message's ID if it belongs to the current conversation, or -1 if invalid (wrong conversation or null).