another.im-ios/Monal/Classes/MLMessageProcessor.h

29 lines
744 B
C
Raw Permalink Normal View History

2024-11-18 14:53:52 +00:00
//
// MLMessageProcessor.h
// Monal
//
// Created by Anurodh Pokharel on 9/1/19.
// Copyright © 2019 Monal.im. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "xmpp.h"
#import "XMPPMessage.h"
NS_ASSUME_NONNULL_BEGIN
@class MLOMEMO;
@class xmpp;
@interface MLMessageProcessor : NSObject
/**
Process a message, persist it and post relevant notifications
*/
+(MLMessage* _Nullable) processMessage:(XMPPMessage*) messageNode andOuterMessage:(XMPPMessage*) outerMessageNode forAccount:(xmpp*) account;
+(MLMessage* _Nullable) processMessage:(XMPPMessage*) messageNode andOuterMessage:(XMPPMessage*) outerMessageNode forAccount:(xmpp*) account withHistoryId:(NSNumber* _Nullable) historyId;
@end
NS_ASSUME_NONNULL_END