MDL-65896 admin: add admin setting to show emoji picker
[moodle.git] / message / classes / helper.php
index 2116ba3..c6472a4 100644 (file)
@@ -772,7 +772,8 @@ class helper {
                 'messageurl' => $messageurl,
                 'notification' => $notification
             ],
-            'isdrawer' => $isdrawer
+            'isdrawer' => $isdrawer,
+            'showemojipicker' => !empty($CFG->allowemojipicker)
         ];
 
         if ($sendtouser || $conversationid) {