Message
Holds information about the Message.
Fields
id
String
The unique identifier for the message.
This property returns the id
from the info
property of the message.
Static Methods
==(::)
Compares two Message
instances for equality.
This function compares all relevant fields of the Message
object, including info
, data
, privateMeta
, publicMeta
, and authorPubKey
.
Params
lhs
privmx.endpoint.thread.Message
The left-hand side Message
instance.
rhs
privmx.endpoint.thread.Message
The right-hand side Message
instance.
Returns
Bool
·
true
if all relevant fields of both messages are equal, otherwise false
.
Methods
hash(into:)
Generates a hash value for the Message
instance.
This function combines the info
property into the hash to uniquely identify the message.
Params
hasher
inout Hasher
The Hasher
instance used to compute the hash value.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.