Fix automated app starting due to room invite

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-09-13 10:39:26 +02:00
parent 68df0a3c8e
commit 82170b77d7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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