mirror of
https://gh.llkk.cc/https://github.com/LJPc-solutions/freescout-internal-conversations-module.git
synced 2025-10-03 16:50:57 +08:00
fix: public from new conversation
This commit is contained in:
parent
45263b3684
commit
a0b744a97a
1 changed files with 7 additions and 0 deletions
|
@ -130,6 +130,13 @@ class InternalConversationsServiceProvider extends ServiceProvider {
|
|||
|
||||
$conversation->setMeta( 'internal_conversations.users', $connectedUsers );
|
||||
|
||||
// Handle public conversation setting from form
|
||||
if ( $request->has( 'internal_conversation_is_public' ) && $request->input( 'internal_conversation_is_public' ) ) {
|
||||
$conversation->setMeta( 'internal_conversations.is_public', true );
|
||||
} else {
|
||||
$conversation->setMeta( 'internal_conversations.is_public', false );
|
||||
}
|
||||
|
||||
$conversation->last_reply_at = date( 'Y-m-d H:i:s' );
|
||||
$conversation->last_reply_from = Conversation::PERSON_USER;
|
||||
$conversation->save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue