消息通知跳转到聊天详情
This commit is contained in:
@@ -53,12 +53,12 @@ public class TeamNotificationHelper {
|
||||
break;
|
||||
case KickMember:
|
||||
case SUPER_TEAM_KICK:
|
||||
// text = buildKickMemberNotification(tid, ((MemberChangeAttachment) attachment), fromUser);
|
||||
// text = buildKickMemberNotification(tid, ((MemberChangeAttachment) attachment), fromUser);
|
||||
text = "";
|
||||
break;
|
||||
case LeaveTeam:
|
||||
case SUPER_TEAM_LEAVE:
|
||||
// text = buildLeaveTeamNotification(tid, fromUser);
|
||||
// text = buildLeaveTeamNotification(tid, fromUser);
|
||||
text = "";
|
||||
break;
|
||||
case DismissTeam:
|
||||
|
||||
@@ -49,12 +49,12 @@ public interface ApiService {
|
||||
/**
|
||||
* 正式环境
|
||||
*/
|
||||
// String URL = "https://api.letschat2023.com/";
|
||||
String URL = "https://api.letschat2023.com/";
|
||||
|
||||
/**
|
||||
* 测试环境
|
||||
*/
|
||||
String URL = "https://api-test.letschat2023.com/";
|
||||
// String URL = "https://api-test.letschat2023.com/";
|
||||
// String URL = "https://8.217.244.135:8001/";
|
||||
|
||||
|
||||
|
||||
@@ -887,11 +887,14 @@ public abstract class ChatBaseViewModel extends BaseViewModel {
|
||||
|
||||
public void setPushPload(IMMessage message, boolean resend) {
|
||||
if (message.getSessionType() == SessionTypeEnum.Team) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("sessionid", message.getSessionId());
|
||||
map.put("sessiontype", 2);
|
||||
message.setPushPayload(map);
|
||||
ChatRepo.sendMessage(
|
||||
message,
|
||||
resend,
|
||||
new FetchCallbackImpl<Void>() {
|
||||
|
||||
@Override
|
||||
public void onFailed(int code) {
|
||||
if (code == RES_IN_BLACK_LIST) {
|
||||
@@ -909,6 +912,8 @@ public abstract class ChatBaseViewModel extends BaseViewModel {
|
||||
String value = ChatDataUtils.getMessageBell(userInfos.get(0));
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("sound", value + ".caf");
|
||||
map.put("sessionid", IMKitClient.account());
|
||||
map.put("sessiontype", 1);
|
||||
message.setPushPayload(map);
|
||||
ChatRepo.sendMessage(
|
||||
message,
|
||||
|
||||
Reference in New Issue
Block a user