diff --git a/xplan-ios/Main/Room/View/StageView/StageView.m b/xplan-ios/Main/Room/View/StageView/StageView.m index c821365c..16a62be0 100644 --- a/xplan-ios/Main/Room/View/StageView/StageView.m +++ b/xplan-ios/Main/Room/View/StageView/StageView.m @@ -267,6 +267,17 @@ } } +//发送消息成功回调 +- (void)sendMessage:(NIMMessage *)message didCompleteWithError:(NSError *)error { + NIMCustomObject *obj = (NIMCustomObject *)message.messageObject; + if (obj.attachment != nil && [obj.attachment isKindOfClass:[AttachmentModel class]]) { + AttachmentModel *attachment = (AttachmentModel *)obj.attachment; + if (attachment.first == CustomMessageType_Gift || attachment.first == CustomMessageType_ALLMicroSend) { + [self receiveGift:attachment]; + } + } +} + #pragma mark - 用户邀请上麦 - (void)microInvite:(NSString *)position { if ([self findMicroViewByPosition:position]) {