Add client open mode preference (same tab / new window) to user settings

This commit is contained in:
root
2026-06-26 19:53:32 +02:00
parent 6add7cdfb1
commit 9c92cd297a
8 changed files with 200 additions and 37 deletions
@@ -31,6 +31,7 @@ class PreferencesController extends Controller
'friend_requests' => 'sometimes|boolean',
'room_invites' => 'sometimes|boolean',
'email_notifications' => 'sometimes|boolean',
'client_open_mode' => 'sometimes|in:same,new_window',
]);
$preferences = array_merge($this->getDefaultPreferences(), $validated);
@@ -49,6 +50,7 @@ class PreferencesController extends Controller
'friend_requests' => true,
'room_invites' => true,
'email_notifications' => false,
'client_open_mode' => 'same',
];
}
}