コード例 #1
0
 /**
  * 回话是否已经被设定为屏蔽
  *
  * @param unreadEntity
  */
 private void addIsForbidden(UnreadEntity unreadEntity) {
   if (unreadEntity.getSessionType() == DBConstant.SESSION_TYPE_GROUP) {
     GroupEntity groupEntity = IMGroupManager.instance().findGroup(unreadEntity.getPeerId());
     if (groupEntity != null && groupEntity.getStatus() == DBConstant.GROUP_STATUS_SHIELD) {
       unreadEntity.setForbidden(true);
     }
   }
 }
コード例 #2
0
 /** 设定未读回话为屏蔽回话 仅限于群组 todo */
 public void setForbidden(String sessionKey, boolean isFor) {
   UnreadEntity unreadEntity = unreadMsgMap.get(sessionKey);
   if (unreadEntity != null) {
     unreadEntity.setForbidden(isFor);
   }
 }