瀏覽代碼

fix: update app

tongmengxiao 11 月之前
父節點
當前提交
6f98eaba44

+ 1 - 1
home/src/main/java/com/swago/home/update/UpdateDialog.kt

@@ -62,7 +62,7 @@ class UpdateDialog : BaseXDFragment<DialogUpdateBinding>() {
                         val intent = Intent()
                         intent.action = Intent.ACTION_VIEW
                         intent.data = Uri.parse(it.link_url)
-                        AppContext.getContext().startActivity(Intent.createChooser(intent, ""))
+                        startActivity(Intent.createChooser(intent, ""))
                     }
 
                     if (it.force != 1) {

+ 3 - 0
room/src/main/java/com/swago/room/vm/RoomVm.kt

@@ -116,6 +116,9 @@ class RoomVm(application: Application) : AbsRoomVm(application) {
                                 }
                             }
                         }
+                    } else if (it.code == 602 && password.isNullOrEmpty()){
+                        SwagoRoomManager.closeRoom()
+                        callback.invoke(false)
                     } else {
                         Toast.makeText(AppContext.getContext(), it.message, Toast.LENGTH_SHORT)
                             .show()