Sfoglia il codice sorgente

Try to fix going to call

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 anni fa
parent
commit
f134d41433

+ 2 - 0
app/src/main/java/com/nextcloud/talk/controllers/CallsListController.java

@@ -500,6 +500,8 @@ public class CallsListController extends BaseController implements SearchView.On
                 bundle.putInt(BundleKeys.KEY_OPERATION_CODE, 99);
                 bundle.putInt(BundleKeys.KEY_OPERATION_CODE, 99);
                 prepareAndShowBottomSheetWithBundle(bundle, false);
                 prepareAndShowBottomSheetWithBundle(bundle, false);
             } else {
             } else {
+                currentUser = userUtils.getCurrentUser();
+
                 if (currentUser.hasSpreedCapabilityWithName("chat-v2")) {
                 if (currentUser.hasSpreedCapabilityWithName("chat-v2")) {
                     bundle.putString(BundleKeys.KEY_CONVERSATION_NAME, room.getDisplayName());
                     bundle.putString(BundleKeys.KEY_CONVERSATION_NAME, room.getDisplayName());
                     getParentController().getRouter().pushController((RouterTransaction.with(new ChatController(bundle))
                     getParentController().getRouter().pushController((RouterTransaction.with(new ChatController(bundle))