mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-06-09 09:44:03 +02:00
28 lines
1.1 KiB
Rust
28 lines
1.1 KiB
Rust
// Copyright (c) 2023 xmpp-rs contributors.
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
use crate::Id;
|
|
|
|
pub mod receive;
|
|
pub mod send;
|
|
|
|
/// A message ID for a message in a MUC room.
|
|
///
|
|
/// Note: this struct is a bit weird due to an inconsistency between XEPs 0308 and 0424.
|
|
///
|
|
/// XEP-0424 (Message Retraction) designates messages to correct by the sender-assigned ID,
|
|
/// but XEP-0308 (Last Message Correction) designates messages to correct by the room-assigned ID.
|
|
///
|
|
/// Hence, both are needed, but depending on context, one or the other may be missing or may
|
|
/// refer to something else; see the context-specific documentation for more information.
|
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
|
pub struct MucMessageId {
|
|
/// The ID of the message as assigned by the client that sent it.
|
|
pub sender_assigned_id: Id,
|
|
/// The ID of the message as assigned by the room.
|
|
pub room_assigned_id: Id,
|
|
}
|