消息模块-送礼物消息
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#import "SessionToolbarView.h"
|
||||
#import "MessageCell.h"
|
||||
#import "SessionChatLimitView.h"
|
||||
#import "XPSendGiftView.h"
|
||||
///P
|
||||
#import "MessagePresenter.h"
|
||||
#import "MessageProtocol.h"
|
||||
@@ -298,6 +299,16 @@
|
||||
}
|
||||
break;
|
||||
case MessageMenuType_Gift:
|
||||
{
|
||||
XPSendGiftView * giftView = [[XPSendGiftView alloc] initWithType:SendGiftType_User uid:nil];
|
||||
XPGiftUserInfoModel * userModel = [[XPGiftUserInfoModel alloc] init];
|
||||
userModel.avatar = self.userInfo.avatar;
|
||||
userModel.nick = self.userInfo.nick;
|
||||
userModel.uid = self.session.sessionId.integerValue;
|
||||
userModel.isSelect = YES;
|
||||
[giftView configGiftUsers:@[userModel]];
|
||||
[self presentViewController:giftView animated:YES completion:nil];
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user