Commit cf6f6fbe by 霍志良

feat:用户进入离开页面

parent 4c3c4016
......@@ -53,6 +53,7 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
private int screenHeight;
protected YDLMessageFragment messageFragment;
private boolean isChangeDoctor = false;
String oldName="";
/**
* @param context
......@@ -223,8 +224,8 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
try {
JSONObject json = JSON.parseObject(content);
int id = json.getIntValue("id");
String oldName=tb.getTitle();
if (id == 1) {
oldName= tb.getTitle();
tb.setTitle("对方正在输入...");
} else if (id==2){
tb.setTitle(oldName);
......
......@@ -1477,7 +1477,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
*
* */
private void userIsInPage(String noticeType,String content,String fromUid,String toUid) {
String str = new Gson().toJson(new UserIsIn(new UserIsInPageData(content),fromUid,noticeType,toUid));
String str = new Gson().toJson(new UserIsIn(new UserIsInPageData(content),toUid,noticeType,fromUid));
RequestBody body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), str);
Disposable subscribe = ImRetrofitApi.Companion.getImRetrofitApi().lingxiSendNotice(body)
.compose(RxUtils.INSTANCE.resultJavaData())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment