public void SendWhisper(int toUserId, ChatMessage message) { //系统发私聊出现两条的问题 if (_userId != toUserId) { _whisperCacheSet.Add(_userId, message); } _whisperCacheSet.Add(toUserId, message); WriteLog(message); }
/// <summary> /// Sends the whisper. /// </summary> /// <param name="toUserId">To user identifier.</param> /// <param name="message">Message.</param> public void SendWhisper(int toUserId, ChatMessage message) { message.ExpiredTime = message.SendDate; //系统发私聊出现两条的问题 if (_userId != toUserId) { _whisperCacheSet.Add(_userId, message); } _whisperCacheSet.Add(toUserId, message); WriteLog(message); }