diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 2ab5cac23ac7d0ff58c1b8cf17bcb646d4e900cc..8dbba488c1905a813c2b5934fef2e2853982dfd5 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -675,14 +675,11 @@ ChatPage::knockRoom(const QString &room,
     reason             = QInputDialog::getText(
       nullptr,
       tr("Knock on room"),
+      // clang-format off
       failedJoin
-                    ? tr(
-            "You failed to join %1. You can try to knock, so that others can invite you in. Do you "
-                        "want to do so?\nYou may optionally provide a reason for others to accept your knock:")
-            .arg(room)
-                    : tr("Do you really want to knock on %1? You may optionally provide a reason for others to "
-                         "accept your knock:")
-            .arg(room),
+        ? tr("You failed to join %1. You can try to knock, so that others can invite you in. Do you want to do so?\nYou may optionally provide a reason for others to accept your knock:").arg(room)
+        : tr("Do you really want to knock on %1? You may optionally provide a reason for others to accept your knock:").arg(room),
+      // clang-format on
       QLineEdit::Normal,
       reason,
       &confirmed);