Skip to content

Commit

Permalink
XEP-0280: Audit Carbons module
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Oct 12, 2017
1 parent 8eef71e commit f15b9b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Extensions/XEP-0280/XMPPMessageCarbons.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

#define _XMPP_MESSAGE_CARBONS_H

NS_ASSUME_NONNULL_BEGIN
@interface XMPPMessageCarbons : XMPPModule
{
BOOL autoEnableMessageCarbons;
BOOL allowsUntrustedMessageCarbons;
BOOL messageCarbonsEnabled;

XMPPIDTracker *xmppIDTracker;
}

/**
* Wether or not to automatically enable Message Carbons.
Expand All @@ -26,7 +20,7 @@
* @see enableMessageCarbons
* @see disableMessageCarbons
**/
@property (assign, getter = isMessageCarbonsEnabled,readonly) BOOL messageCarbonsEnabled;
@property (atomic, readonly) BOOL isMessageCarbonsEnabled;

/**
* Whether Message Carbons are validated before calling the delegate methods.
Expand Down Expand Up @@ -62,4 +56,5 @@

- (void)xmppMessageCarbons:(XMPPMessageCarbons *)xmppMessageCarbons didReceiveMessage:(XMPPMessage *)message outgoing:(BOOL)isOutgoing;

@end
@end
NS_ASSUME_NONNULL_END
10 changes: 10 additions & 0 deletions Extensions/XEP-0280/XMPPMessageCarbons.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@

#define XMLNS_XMPP_MESSAGE_CARBONS @"urn:xmpp:carbons:2"

@interface XMPPMessageCarbons()
{
BOOL autoEnableMessageCarbons;
BOOL allowsUntrustedMessageCarbons;
BOOL messageCarbonsEnabled;

XMPPIDTracker *xmppIDTracker;
}
@end

@implementation XMPPMessageCarbons

- (id)initWithDispatchQueue:(dispatch_queue_t)queue
Expand Down

0 comments on commit f15b9b4

Please sign in to comment.