mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Use simple, hidden toolbar on mobile for sending messages, even if mobile view setting is off
This commit is contained in:
parent
c5e13d3cf7
commit
7fe2523f0e
1 changed files with 2 additions and 1 deletions
|
|
@ -290,8 +290,9 @@ class CommunicationView extends communication
|
|||
$option->editor_skin = $this->config->editor_skin;
|
||||
$option->sel_editor_colorset = $this->config->editor_colorset;
|
||||
$option->editor_focus = Context::get('source_message') ? 'Y' : 'N';
|
||||
if(Context::get('m'))
|
||||
if(Context::get('m') || stripos($_SERVER['HTTP_USER_AGENT'] ?? '', 'mobile') !== false)
|
||||
{
|
||||
$option->editor_toolbar = 'simple';
|
||||
$option->editor_toolbar_hide = 'Y';
|
||||
}
|
||||
if ($option->allow_fileupload)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue