1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::proto::story_message::Attachment;

use super::StoryMessage;

impl StoryMessage {
    pub fn has_text_attachment(&self) -> bool {
        matches!(self.attachment, Some(Attachment::TextAttachment(_)))
    }

    pub fn has_file_attachment(&self) -> bool {
        matches!(self.attachment, Some(Attachment::FileAttachment(_)))
    }
}