libsignal_service/content/data_message.rs
1use super::DataMessage;
2
3impl DataMessage {
4 pub fn is_story_reaction(&self) -> bool {
5 self.has_story_context() && self.is_reaction()
6 }
7
8 pub fn is_reaction(&self) -> bool {
9 self.reaction.is_some()
10 }
11
12 pub fn has_story_context(&self) -> bool {
13 self.story_context.is_some()
14 }
15}