mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Fix a crash
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
91f38323e9
commit
e79d25dc3f
@ -839,9 +839,11 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
if (currentUser.hasSpreedCapabilityWithName("chat-v2")) {
|
if (currentUser.hasSpreedCapabilityWithName("chat-v2")) {
|
||||||
bundle.putString(BundleKeys.KEY_CONVERSATION_NAME,
|
bundle.putString(BundleKeys.KEY_CONVERSATION_NAME,
|
||||||
roomOverall.getOcs().getData().getDisplayName());
|
roomOverall.getOcs().getData().getDisplayName());
|
||||||
getParentController().getRouter().pushController((RouterTransaction.with(new ChatController(bundle))
|
if (getParentController() != null) {
|
||||||
.pushChangeHandler(new HorizontalChangeHandler())
|
getParentController().getRouter().pushController((RouterTransaction.with(new ChatController(bundle))
|
||||||
.popChangeHandler(new HorizontalChangeHandler())));
|
.pushChangeHandler(new HorizontalChangeHandler())
|
||||||
|
.popChangeHandler(new HorizontalChangeHandler())));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
startActivity(conversationIntent);
|
startActivity(conversationIntent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user