Ejemplo n.º 1
0
 private bool OnRecvFriendChatMsgNotify(RecvFriendChatMsgNotify rsp)
 {
     if ((this._talkingFriendUid > 0) && (rsp.get_chat_msg().get_uid() == this._talkingFriendUid))
     {
         if (this._mode == Mode.Friend)
         {
             this.UpdateChatList(1);
         }
         Singleton <ChatModule> .Instance.SetFriendMsgRead(this._talkingFriendUid);
     }
     else
     {
         this.SetupFriendList();
         this.UpdateNewMsgBtnTip();
     }
     return(false);
 }
Ejemplo n.º 2
0
 private bool OnRecvFriendChatMsgNotify(RecvFriendChatMsgNotify rsp)
 {
     this.AddFriendChatMsg(new ChatMsgDataItem(rsp.get_chat_msg()));
     return(false);
 }