1
This commit is contained in:
parent
97663170e8
commit
9f8b496e5a
@ -51,11 +51,12 @@ class ChatMgr : public a8::Singleton<ChatMgr>
|
||||
void ProcPrivateChat(Player* hum, const cs::CMSendChatMsg& msg);
|
||||
void ProcGuildChat(Player* hum, const cs::CMSendChatMsg& msg);
|
||||
|
||||
private:
|
||||
ChatedUserRec* GetChatedUser(const std::string& account_id);
|
||||
void SyncWorldChatMsg(Player* hum);
|
||||
void SyncPrivateChatMsg(Player* hum);
|
||||
void SyncGuildChatMsg(Player* hum);
|
||||
|
||||
private:
|
||||
ChatedUserRec* GetChatedUser(const std::string& account_id);
|
||||
void AddChatedUser(const std::string& sender_id, const std::string& receiver_id,
|
||||
cs::MFChatMsg* chat_msg, long long last_id);
|
||||
|
||||
|
@ -595,16 +595,17 @@ void Player::_CMReadMsgAndOpenChatNotify(f8::MsgHdr& hdr, const cs::CMReadMsgAnd
|
||||
case kCCWorld:
|
||||
{
|
||||
world_channel_last_id = pair.val();
|
||||
ChatMgr::Instance()->SyncWorldChatMsg(this);
|
||||
}
|
||||
break;
|
||||
case kCCPrivate:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
case kCCGuild:
|
||||
{
|
||||
guild_channel_last_id = pair.val();
|
||||
ChatMgr::Instance()->SyncGuildChatMsg(this);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user