diff --git a/android/src/main/scala/com/nutomic/ensichat/activities/MainActivity.scala b/android/src/main/scala/com/nutomic/ensichat/activities/MainActivity.scala index 9ed2093..f3b9e8d 100644 --- a/android/src/main/scala/com/nutomic/ensichat/activities/MainActivity.scala +++ b/android/src/main/scala/com/nutomic/ensichat/activities/MainActivity.scala @@ -126,7 +126,8 @@ class MainActivity extends EnsichatActivity { override def onOptionsItemSelected(item: MenuItem): Boolean = item.getItemId match { case android.R.id.home => - onBackPressed() + if (currentChat.isDefined) + onBackPressed() true; case _ => super.onOptionsItemSelected(item);