From a463d29638abc97be577bb05ea31d1ca020fd1f7 Mon Sep 17 00:00:00 2001 From: wralto-user-1 Date: Sat, 31 Oct 2026 15:19:58 +0100 Subject: [PATCH] Add new chat types and use less for displaying rooms.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added type 4: inaktiv/gelöscht - Added type 5: inaktiv - Added type 6: Notiz an mich - All CASE statements updated in SQL queries - Changed cat to less -F for displaying rooms.txt Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- nextcloud_talk_manager.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/nextcloud_talk_manager.sh b/nextcloud_talk_manager.sh index c709292..f55af1c 100755 --- a/nextcloud_talk_manager.sh +++ b/nextcloud_talk_manager.sh @@ -104,6 +104,9 @@ list_all_rooms() { WHEN 1 THEN 'Gruppe' WHEN 2 THEN 'öffentlich' WHEN 3 THEN 'privat' + WHEN 4 THEN 'inaktiv/gelöscht' + WHEN 5 THEN 'inaktiv' + WHEN 6 THEN 'Notiz an mich' WHEN 7 THEN 'föderiert' ELSE CONCAT('Unbekannt (', type, ')') END AS Typ, @@ -132,6 +135,9 @@ list_all_rooms() { WHEN 1 THEN 'Gruppe' WHEN 2 THEN 'öffentlich' WHEN 3 THEN 'privat' + WHEN 4 THEN 'inaktiv/gelöscht' + WHEN 5 THEN 'inaktiv' + WHEN 6 THEN 'Notiz an mich' WHEN 7 THEN 'föderiert' ELSE CONCAT('Unbekannt (', type, ')') END AS Typ, @@ -158,7 +164,7 @@ list_all_rooms() { echo -e "${GREEN}=================================================================${NC}" echo "" - cat "$output_file" + less -F "$output_file" echo "" echo -e "${GREEN}Die Liste wurde in $output_file gespeichert.${NC}" @@ -437,10 +443,10 @@ show_rooms_file() { fi echo -e "\n${GREEN}=================================================================${NC}" - echo -e "${GREEN} Inhalt von $file${NC}" + echo -e "${GREEN} Inhalt von $file (mit less - zum Beenden: q)${NC}" echo -e "${GREEN}=================================================================${NC}" echo "" - cat "$file" + less -F "$file" echo "" read -p "Enter..." } @@ -464,6 +470,9 @@ list_rooms_with_participants() { WHEN 1 THEN 'Gruppe' WHEN 2 THEN 'öffentlich' WHEN 3 THEN 'privat' + WHEN 4 THEN 'inaktiv/gelöscht' + WHEN 5 THEN 'inaktiv' + WHEN 6 THEN 'Notiz an mich' WHEN 7 THEN 'föderiert' ELSE CONCAT('Unbekannt (', r.type, ')') END AS Typ, @@ -487,6 +496,9 @@ list_rooms_with_participants() { WHEN 1 THEN 'Gruppe' WHEN 2 THEN 'öffentlich' WHEN 3 THEN 'privat' + WHEN 4 THEN 'inaktiv/gelöscht' + WHEN 5 THEN 'inaktiv' + WHEN 6 THEN 'Notiz an mich' WHEN 7 THEN 'föderiert' ELSE CONCAT('Unbekannt (', r.type, ')') END AS Typ, @@ -510,6 +522,9 @@ list_rooms_with_participants() { WHEN 1 THEN 'Gruppe' WHEN 2 THEN 'öffentlich' WHEN 3 THEN 'privat' + WHEN 4 THEN 'inaktiv/gelöscht' + WHEN 5 THEN 'inaktiv' + WHEN 6 THEN 'Notiz an mich' WHEN 7 THEN 'föderiert' ELSE CONCAT('Unbekannt (', r.type, ')') END AS Typ, @@ -540,7 +555,7 @@ list_rooms_with_participants() { echo -e "${GREEN}=================================================================${NC}" echo "" - cat "$output_file" + less -F "$output_file" echo "" echo -e "${GREEN}Die Liste wurde in $output_file gespeichert.${NC}"