Skip to content

Commit 34d5973

Browse files
Merge branch 'master' of github.com:freescout-helpdesk/freescout into dist
2 parents 1a4abad + 7152ee7 commit 34d5973

File tree

34 files changed

+88
-31
lines changed

34 files changed

+88
-31
lines changed

app/Console/Commands/AfterAppUpdate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ public function handle()
4040
$this->call('freescout:clear-cache');
4141
$this->call('migrate', ['--force' => true]);
4242
$this->call('queue:restart');
43+
44+
\Eventy::action('command.after_app_update');
4345
}
4446
}

app/Conversation.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,8 @@ public static function deleteConversationsForever($conversation_ids)
19111911
{
19121912
\Eventy::action('conversations.before_delete_forever', $conversation_ids);
19131913

1914+
$folder_ids = [];
1915+
19141916
//$conversation_ids = $conversations->pluck('id')->toArray();
19151917
for ($i=0; $i < ceil(count($conversation_ids) / \Helper::IN_LIMIT); $i++) {
19161918

@@ -1920,6 +1922,20 @@ public static function deleteConversationsForever($conversation_ids)
19201922
$thread_ids = Thread::whereIn('conversation_id', $ids)->pluck('id')->toArray();
19211923
Attachment::deleteByThreadIds($thread_ids);
19221924

1925+
// Collect folders IDs.
1926+
$folder_ids = array_merge($folder_ids, ConversationFolder::whereIn('conversation_id', $ids)
1927+
->distinct()
1928+
->pluck('id')
1929+
->toArray()
1930+
);
1931+
$folder_ids = array_unique($folder_ids);
1932+
$folder_ids = array_merge($folder_ids, Conversation::whereIn('id', $ids)
1933+
->distinct()
1934+
->pluck('folder_id')
1935+
->toArray()
1936+
);
1937+
$folder_ids = array_unique($folder_ids);
1938+
19231939
// Observers do not react on this kind of deleting.
19241940

19251941
// Delete threads.
@@ -1930,8 +1946,22 @@ public static function deleteConversationsForever($conversation_ids)
19301946

19311947
// Delete conversations.
19321948
Conversation::whereIn('id', $ids)->delete();
1949+
1950+
// Delete links to folders.
19331951
ConversationFolder::whereIn('conversation_id', $ids)->delete();
19341952
}
1953+
1954+
// Update folders counters.
1955+
for ($i=0; $i < ceil(count($folder_ids) / \Helper::IN_LIMIT); $i++) {
1956+
1957+
$ids = array_slice($folder_ids, $i*\Helper::IN_LIMIT, \Helper::IN_LIMIT);
1958+
1959+
// Update counters.
1960+
$folders = Folder::whereIn('id', $ids)->get();
1961+
foreach ($folders as $folder) {
1962+
$folder->updateCounters();
1963+
}
1964+
}
19351965
}
19361966

19371967
/**

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
| or any other location as required by the application or its packages.
1919
*/
2020

21-
'version' => '1.8.201',
21+
'version' => '1.8.202',
2222

2323
/*
2424
|--------------------------------------------------------------------------

overrides/guzzlehttp/guzzle/src/Handler/StreamHandler.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,13 @@ function () use ($context, $params) {
322322
return $this->createResource(
323323
function () use ($uri, &$http_response_header_local, $context, $options) {
324324
$resource = fopen((string) $uri, 'r', null, $context);
325-
$this->lastHeaders = $http_response_header_local;
325+
326+
// See https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_http_response_header_predefined_variable
327+
if (function_exists('http_get_last_response_headers')) {
328+
$http_response_header = \http_get_last_response_headers();
329+
}
330+
331+
$this->lastHeaders = $http_response_header ?? [];
326332

327333
if (isset($options['read_timeout'])) {
328334
$readTimeout = $options['read_timeout'];

public/css/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,9 @@ https://github.com/freescout-help-desk/freescout/issues/4354
12331233
margin: 0 0 4px 0;
12341234
}
12351235
.customer-social-profiles {
1236+
white-space: nowrap;
1237+
max-width: 144px;
1238+
overflow-x: auto;
12361239
position: absolute;
12371240
top: 0;
12381241
left: 92px;
@@ -1359,6 +1362,14 @@ https://github.com/freescout-help-desk/freescout/issues/4354
13591362
text-align: center;
13601363
vertical-align: middle;
13611364
}
1365+
.conv-email {
1366+
color: #93a1af;
1367+
font-weight: normal;
1368+
font-size: 13.4px;
1369+
display: block;
1370+
max-height: 36px;
1371+
overflow: hidden;
1372+
}
13621373
.conv-cb label {
13631374
position: relative;
13641375
top: -8px;
@@ -1762,6 +1773,9 @@ button.conv-checkbox-clear {
17621773
right: 0;
17631774
text-align: right;
17641775
}
1776+
.conv-email {
1777+
display: none;
1778+
}
17651779
.conv-thread-count {
17661780
position: absolute;
17671781
right: 0;
@@ -2904,6 +2918,10 @@ ul.sidebar-block-list {
29042918
display: none!important;
29052919
height: 0!important;
29062920
}
2921+
.customer-social-profiles {
2922+
white-space: normal;
2923+
max-width: none;
2924+
}
29072925
}
29082926
@media (max-width:991px) {
29092927
.conv-info .btn-group button.conv-info-val {

resources/lang/ar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
"Get license key": "الحصول على مفتاح الترخيص",
269269
"Go to": "اذهب إلى",
270270
"HTTPS protocol is required for the browser push notifications to work.": "بروتوكول HTTPS مطلوب حتى يعمل المتصفح دفع الإخطارات.",
271-
"Headers": "الرؤوس",
271+
"Email Headers": "الرؤوس",
272272
"Help": "مساعدة",
273273
"Hide": "اخفاء",
274274
"Hide from Assign list": "إخفاء من قائمة التخصيص",

resources/lang/cs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
"Get license key": "Získání licenčního klíče",
332332
"Go to": "Přejít na",
333333
"HTTPS protocol is required for the browser push notifications to work.": "Pro fungování oznámení push v prohlížeči je vyžadován protokol HTTPS.",
334-
"Headers": "Záhlaví",
334+
"Email Headers": "Záhlaví",
335335
"Hello :user_name": "Dobrý den :person_name",
336336
"Help": "Pomoc",
337337
"Hi :user, an account has been created for you at :app_url": "Dobrý den :user, byl pro vás vytvořen účet na adrese :app_url",

resources/lang/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
"Get license key": "Lizenz erwerben",
329329
"Go to": "Gehe zu",
330330
"HTTPS protocol is required for the browser push notifications to work.": "Damit Push-Nachrichten funktionieren wird das \"HTTPS\"-Protokoll benötigt.",
331-
"Headers": "Überschriften",
331+
"Email Headers": "Überschriften",
332332
"Hello :user_name": "Hallo :user_name",
333333
"Help": "Hilfe",
334334
"Hi :user, an account has been created for you at :app_url": "Hallo :user, für Sie wurde ein Konto auf :app_url angelegt",

resources/lang/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
"Get license key": "Obtener clave de licencia",
327327
"Go to": "Ir a",
328328
"HTTPS protocol is required for the browser push notifications to work.": "Se requiere protocolo HTTPS para que funcionen las notificaciones push del navegador.",
329-
"Headers": "Cabeceras",
329+
"Email Headers": "Cabeceras",
330330
"Hello :user_name": "Hola :user_name",
331331
"Help": "Ayuda",
332332
"Hi :user, an account has been created for you at :app_url": "Hola :user, se ha creado una cuenta para ti en :app_url",

resources/lang/fa.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
"Get license key": "دریافت کلید مجوز",
311311
"Go to": "قابل اعتماد",
312312
"HTTPS protocol is required for the browser push notifications to work.": "برای اینکه اعلان های لحظه ای کار کنند، HTTPS لازم است.",
313-
"Headers": "سرصفحه ها",
313+
"Email Headers": "سرصفحه ها",
314314
"Hello :user_name": "سلام :user_name",
315315
"Hi :user, an account has been created for you at :app_url": "سلام :user، یک حساب کاربری برای شما در :app_url ایجاد شده است",
316316
"Hide": "پنهان شدن",

0 commit comments

Comments
 (0)