同步专业版IM服务代码

This commit is contained in:
heavyrian2012
2023-08-01 14:24:19 +08:00
parent 509048da04
commit 5c7b320b04
2 changed files with 3 additions and 1 deletions
@@ -810,7 +810,7 @@ public class MemoryMessagesStore implements IMessagesStore {
} }
if (bundle.getMessage().getContent().getExpireDuration() > 0) { if (bundle.getMessage().getContent().getExpireDuration() > 0) {
if (System.currentTimeMillis() > bundle.getMessage().getServerTimestamp() + bundle.getMessage().getContent().getExpireDuration()*1000) { if (System.currentTimeMillis() > bundle.getMessage().getServerTimestamp() + bundle.getMessage().getContent().getExpireDuration()* 1000L) {
continue; continue;
} }
} }
@@ -156,6 +156,8 @@ public class ProtoConstants {
int Modify_Group_History_Message = 7; int Modify_Group_History_Message = 7;
//仅专业版的server api支持 //仅专业版的server api支持
int Modify_Group_Max_Member_Count = 8; int Modify_Group_Max_Member_Count = 8;
//仅专业版的server api支持
int Modify_Group_Super_Group = 9;
} }
//ModifyGroupInfoRequest -> type //ModifyGroupInfoRequest -> type