//注意,如果好友上线了,并且当前打开了手机聊天对话框,需要关闭这个手机聊天对话框
if(curpresense == Presence.AWAY || curpresense == Presence.BUSY ||
curpresense == Presence.ONLINE || curpresense == Presence.ROBOT ) {
ChatDialog chatDialog = this.context.getDialogFactory().findChatDialog(buddy);
if(chatDialog!=null && chatDialog instanceof BasicChatDialog) {
chatDialog.closeDialog();
}
}
//通知监听器,好友状态已经改变
this.tryFireNotifyEvent(new BuddyPresenceEvent(buddy));