another.im-ios/Monal/Classes/MLMessageProcessor.h
2024-11-18 15:53:52 +01:00

29 lines
744 B
Objective-C

//
// 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