فهرست منبع

Fix automated app starting due to room invite

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 5 سال پیش
والد
کامیت
82170b77d7

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/ChatController.java

@@ -528,7 +528,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
         messageInputView.getButton().setContentDescription(getResources()
                 .getString(R.string.nc_description_send_message_button));
 
-        if (currentConversation.getRoomId() != null) {
+        if (currentConversation != null && currentConversation.getRoomId() != null) {
             loadAvatarForStatusBar();
             checkLobbyState();
         }

+ 1 - 1
app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.java

@@ -615,7 +615,7 @@ public class NotificationWorker extends Worker {
                                     break;
                                 case "room":
                                     if (bundle.containsKey(BundleKeys.INSTANCE.getKEY_ROOM_TOKEN())) {
-                                        showNotificationForCallWithNoPing(intent);
+                                        showNotificationWithObjectData(intent);
                                     }
                                     break;
                                 case "chat":