Fix call from assistant

This commit is contained in:
NekoInverter 2020-12-09 15:02:36 +08:00 committed by 世界
parent 71a5d8cae4
commit be6633ad4c
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -2293,7 +2293,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
final boolean videoCall = videoCallUser; final boolean videoCall = videoCallUser;
contactsFragment.setDelegate((user, param, activity) -> { contactsFragment.setDelegate((user, param, activity) -> {
final TLRPC.UserFull userFull = MessagesController.getInstance(currentAccount).getUserFull(user.id); final TLRPC.UserFull userFull = MessagesController.getInstance(currentAccount).getUserFull(user.id);
VoIPHelper.startCall(user, videoCall, userFull != null && userFull.video_calls_available, LaunchActivity.this, userFull); VoIPHelper.startCall(user, videoCall, userFull != null && userFull.video_calls_available, LaunchActivity.this, userFull, true);
}); });
actionBarLayout.presentFragment(contactsFragment, actionBarLayout.getLastFragment() instanceof ContactsActivity, true, true, false); actionBarLayout.presentFragment(contactsFragment, actionBarLayout.getLastFragment() instanceof ContactsActivity, true, true, false);
if (AndroidUtilities.isTablet()) { if (AndroidUtilities.isTablet()) {