SendOperation: Return whole message, not just GUID.
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#import "MBIMSendMessageOperation.h"
|
#import "MBIMSendMessageOperation.h"
|
||||||
|
|
||||||
#import "IMCore_ClassDump.h"
|
#import "IMCore_ClassDump.h"
|
||||||
|
#import "IMMessageItem+Encoded.h"
|
||||||
|
|
||||||
@implementation MBIMSendMessageOperation
|
@implementation MBIMSendMessageOperation
|
||||||
|
|
||||||
@@ -81,9 +82,7 @@
|
|||||||
|
|
||||||
IMMessage *result = [self _sendMessage:messageBody toChatWithGUID:guid attachmentGUIDs:transferGUIDs];
|
IMMessage *result = [self _sendMessage:messageBody toChatWithGUID:guid attachmentGUIDs:transferGUIDs];
|
||||||
if (result) {
|
if (result) {
|
||||||
response = [MBIMJSONDataResponse responseWithJSONObject:@{
|
response = [MBIMJSONDataResponse responseWithJSONObject:[result mbim_dictionaryRepresentation]];
|
||||||
@"guid" : [result guid]
|
|
||||||
}];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.serverCompletionBlock(response);
|
self.serverCompletionBlock(response);
|
||||||
|
|||||||
Reference in New Issue
Block a user