aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/protocol/message_flag.vala
blob: ba9ea16ec0debf0b25d397c96eac6e9a0f913628 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Xmpp;

namespace Dino.Plugins.Omemo {

public class MessageFlag : Xmpp.MessageFlag {
    public const string id = "omemo";

    public bool decrypted = false;

    public static MessageFlag? get_flag(MessageStanza message) {
        return (MessageFlag) message.get_flag(NS_URI, id);
    }

    public override string get_ns() {
        return NS_URI;
    }

    public override string get_id() {
        return id;
    }
}

}