Skip to content

Commit

Permalink
Merge pull request #5 from mjtorn/group-flags
Browse files Browse the repository at this point in the history
Add the two group flags from textsecure
  • Loading branch information
rubdos authored Jul 11, 2020
2 parents 7bdc4e6 + 1740f6d commit 41dd104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libsignal-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ pub use crate::account_manager::AccountManager;
pub const USER_AGENT: &'static str =
concat!(env!("CARGO_PKG_NAME"), "-rs-", env!("CARGO_PKG_VERSION"));

/// GROUP_UPDATE_FLAG signals that this message updates the group membership or name.
pub const GROUP_UPDATE_FLAG: u32 = 1;

/// GROUP_LEAVE_FLAG signals that this message is a group leave message.
pub const GROUP_LEAVE_FLAG: u32 = 2;

pub struct TrustStore;
2 changes: 1 addition & 1 deletion libsignal-service/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct Message {
pub source: String,
pub message: String,
pub attachments: Vec<Attachment<u8>>,
pub group: Group,
pub group: Option<Group>,
pub timestamp: i64,
pub flags: i32,
}

0 comments on commit 41dd104

Please sign in to comment.