1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::DataMessage;

impl DataMessage {
    pub fn is_story_reaction(&self) -> bool {
        self.has_story_context() && self.is_reaction()
    }

    pub fn is_reaction(&self) -> bool {
        self.reaction.is_some()
    }

    pub fn has_story_context(&self) -> bool {
        self.story_context.is_some()
    }
}