UX: Restore new messages button on mobile on PM route. (#14576)

UX: Restore new messages button on mobile on PM route. (#14576)

Follow-up to 9d5da2b383765becb824a8f3ff3665abc8e527fa

diff --git a/app/assets/javascripts/discourse/app/templates/user/messages.hbs b/app/assets/javascripts/discourse/app/templates/user/messages.hbs
index 91b6578..75210d5 100644
--- a/app/assets/javascripts/discourse/app/templates/user/messages.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user/messages.hbs
@@ -103,6 +103,16 @@
 {{/unless}}
 
 <section class="user-content">
+  <div class="list-actions">
+    {{#if (and site.mobileView showNewPM)}}
+      {{d-button
+        class="btn-primary new-private-message"
+        action=(route-action "composePrivateMessage")
+        icon="envelope"
+        label="user.new_private_message"}}
+    {{/if}}
+  </div>
+
   {{#if showWarningsWarning}}
     <div class="alert alert-info">{{html-safe (i18n "admin.user.warnings_list_warning")}}</div>
   {{/if}}

GitHub sha: baaee1ca2634e380acfa569273d1c843c2803301

This commit appears in #14576 which was approved by jomaxro. It was merged by tgxworld.