1, 修改本地运行时version检查错误。2,修改好友被删除后再次添加好友。3,优化部分流程
This commit is contained in:
@@ -41,7 +41,7 @@ public class VersionAction extends Action {
|
|||||||
response.setContent(new Gson().toJson(GitRepositoryState.getGitRepositoryState()));
|
response.setContent(new Gson().toJson(GitRepositoryState.getGitRepositoryState()));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
response.setContent("No version info!");
|
response.setContent("{\"version\":\"unknown\"}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1481,7 +1481,7 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (existRequest != null) {
|
if (existRequest != null) {
|
||||||
if (System.currentTimeMillis() - existRequest.getUpdateDt() > 7 * 24 * 60 * 60 * 1000) {
|
if (existRequest.getStatus() != ProtoConstants.FriendRequestStatus.RequestStatus_Accepted && System.currentTimeMillis() - existRequest.getUpdateDt() > 7 * 24 * 60 * 60 * 1000) {
|
||||||
if (existRequest.getStatus() == ProtoConstants.FriendRequestStatus.RequestStatus_Rejected) {
|
if (existRequest.getStatus() == ProtoConstants.FriendRequestStatus.RequestStatus_Rejected) {
|
||||||
return ErrorCode.ERROR_CODE_FRIEND_REQUEST_BLOCKED;
|
return ErrorCode.ERROR_CODE_FRIEND_REQUEST_BLOCKED;
|
||||||
}
|
}
|
||||||
@@ -1761,6 +1761,7 @@ public class MemoryMessagesStore implements IMessagesStore {
|
|||||||
userSettingMap.put(userId, settingEntry);
|
userSettingMap.put(userId, settingEntry);
|
||||||
userGlobalSlientMap.remove(userId);
|
userGlobalSlientMap.remove(userId);
|
||||||
userConvSlientMap.remove(userId);
|
userConvSlientMap.remove(userId);
|
||||||
|
userPushHiddenDetail.remove(userId);
|
||||||
return updateDt;
|
return updateDt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -227,6 +227,8 @@ public class MessagesPublisher {
|
|||||||
isSlient = true;
|
isSlient = true;
|
||||||
} else {
|
} else {
|
||||||
isSlient = false;
|
isSlient = false;
|
||||||
|
|
||||||
|
if (!user.equals(sender)) {
|
||||||
WFCMessage.Conversation conversation;
|
WFCMessage.Conversation conversation;
|
||||||
if (conversationType == ProtoConstants.ConversationType.ConversationType_Private) {
|
if (conversationType == ProtoConstants.ConversationType.ConversationType_Private) {
|
||||||
conversation = WFCMessage.Conversation.newBuilder().setType(conversationType).setLine(line).setTarget(sender).build();
|
conversation = WFCMessage.Conversation.newBuilder().setType(conversationType).setLine(line).setTarget(sender).build();
|
||||||
@@ -234,6 +236,7 @@ public class MessagesPublisher {
|
|||||||
conversation = WFCMessage.Conversation.newBuilder().setType(conversationType).setLine(line).setTarget(target).build();
|
conversation = WFCMessage.Conversation.newBuilder().setType(conversationType).setLine(line).setTarget(target).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (m_messagesStore.getUserConversationSlient(user, conversation)) {
|
if (m_messagesStore.getUserConversationSlient(user, conversation)) {
|
||||||
LOG.info("The conversation {}-{}-{} is slient", conversation.getType(), conversation.getTarget(), conversation.getLine());
|
LOG.info("The conversation {}-{}-{} is slient", conversation.getType(), conversation.getTarget(), conversation.getLine());
|
||||||
isSlient = true;
|
isSlient = true;
|
||||||
@@ -243,6 +246,7 @@ public class MessagesPublisher {
|
|||||||
LOG.info("The user {} is global sliented", user);
|
LOG.info("The user {} is global sliented", user);
|
||||||
isSlient = true;
|
isSlient = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!StringUtil.isNullOrEmpty(pushContent) || messageContentType == 400 || messageContentType == 402) {
|
if (!StringUtil.isNullOrEmpty(pushContent) || messageContentType == 400 || messageContentType == 402) {
|
||||||
if (!isSlient) {
|
if (!isSlient) {
|
||||||
|
|||||||
Reference in New Issue
Block a user