Commit Graph

22 Commits

Author SHA1 Message Date
071dc04f62 Add function to list all rooms with participants, export to rooms.txt
- New menu point C: List all rooms WITH participants
- Uses GROUP_CONCAT to combine participants into one column
- Tests multiple JOIN variants (user_id, attendee_id, actor_id)
- Saves to rooms.txt

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:59:18 +01:00
54775dd573 Add menu point to show rooms.txt and fix participant query
- New menu point B: Show existing rooms.txt file
- Fixed list_room_participants() with multiple query methods
- Tests room_token, room_id, attendee_id, user_id, actor_id

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:44:16 +01:00
f6740cedd3 FIX: Korrekte Tabellennamen und menschenlesbare Typen
- Räume: kwcL2_talk_rooms (direkt verwendet)
- Teilnehmer: kwcL2_talk_attendees mit room_token
- Typen: 0=Einzel, 1=Gruppe, 2=öffentlich, 3=privat, 7=föderiert
- Fehlermeldungen bei Teilnehmer-Abfrage verbessert

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:39:07 +01:00
2186ef6a74 DEBUG: MySQL-Fehlermeldungen anzeigen für bessere Fehlersuche
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:28:05 +01:00
353e0bd085 FIX: Korrigierte MySQL-Befehle - direkte Ausführung ohne Variablen
- MySQL-Befehle direkt in die Kommandozeile geschrieben
- Anführungszeichen um DB-Parameter hinzugefügt
- mysql-Client Verfügbarkeit geprüft

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:27:37 +01:00
4f6402c57b FIX: Fehlende schliessende Klammer in list_room_participants() Funktion
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:22:53 +01:00
c44b74f871 Add functions to list all rooms and participants from database
- Added DB configuration for direct MySQL access
- Added list_all_rooms() function: lists all Talk rooms and saves to rooms.txt
- Added list_room_participants() function: lists participants of a specific room
- Added room type legend (0=1:1, 1=group, 2=public, 3=private, 7=federated)
- Added new menu options: 9 (list rooms), A (list participants), D (debug)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:19:01 +01:00
3e3fcd6624 Add scripts to list Talk rooms from database
- list_talk_rooms.php: PHP script using Nextcloud config
- get_talk_rooms.sh: Bash wrapper for PHP script
- list_rooms_mysql.sh: Direct MySQL script

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 14:04:21 +01:00
6b01d1bc7b FIX: talk:room:add verwendet --user Option, andere Befehle verwenden TOKEN USERNAME
- add_user_to_chat: --user USERNAME TOKEN
- remove_user_from_chat: TOKEN USERNAME
- make_moderator: TOKEN USERNAME
- remove_moderator: TOKEN USERNAME

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 13:54:44 +01:00
05d7669d33 FIX: Korrigierte talk:room:update Parameter von --read-only zu --readonly
- lock_chat: --readonly=1 statt --read-only=1
- unlock_chat: --readonly=0 statt --read-only=0

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-31 13:47:23 +01:00
851adf78df FINAL FIX: Korrigierte Syntax für alle talk:room:* Befehle
- talk:room:create --public NAME (statt --type)
- talk:room:add TOKEN USERNAME (statt --user USERNAME TOKEN)
- talk:room:remove TOKEN USERNAME (statt --user USERNAME TOKEN)
- talk:room:promote TOKEN USERNAME (statt --user USERNAME TOKEN)
- talk:room:demote TOKEN USERNAME (statt --user USERNAME TOKEN)
- Typ-Auswahl entfernt (nur public Chats)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 17:19:24 +01:00
5f33e48fe7 FINAL: NUTZERNAMEN direkt verwenden (keine User-ID mehr nötig)
- talk:room:add --user NUTZERNAME TOKEN
- talk:room:remove --user NUTZERNAME TOKEN
- talk:room:promote --user NUTZERNAME TOKEN
- talk:room:demote --user NUTZERNAME TOKEN
- User-ID Extraktion entfernt (nicht nötig)
- Vereinfachte Logik

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:49:25 +01:00
2eae85c30f FINAL FIX: Korrekte Argument-Reihenfolge für talk:room Befehle
- talk:room:add --user USERID TOKEN (nicht TOKEN USERID)
- talk:room:remove --user USERID TOKEN (nicht TOKEN USERID)
- talk:room:promote --user USERID TOKEN (nicht TOKEN USERID)
- talk:room:demote --user USERID TOKEN (nicht TOKEN USERID)
- Alle User-ID Abfragen funktionieren
- Validierung funktioniert

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:41:35 +01:00
bf422c30e3 FINAL: User-ID Abfrage komplett korrigiert
- get_user_id() nutzt jetzt user:info als Primärmethode
- Fallback auf user:list --output=json
- Fallback auf user:list
- Zeigt User-ID in Debug-Modus an
- Alle Talk-Kommandos final für Nextcloud 34

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:30:38 +01:00
3ccda95748 FINAL WORKING VERSION: validate_room mit korrigierter grep-Logik (-E Flag)
- grep -qiE statt grep -qi für OR-Operator |
- Alle Talk-Kommandos final für Nextcloud 34
- validate_room erkennt jetzt korrekt existing rooms
- Kompakt und sauber

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:24:49 +01:00
7418a62f3e FINAL FIX: Alle Talk-Kommandos für Nextcloud 34 komplett korrigiert
- talk:chat:create -> talk:room:create (endgültig)
- talk:participant:* -> talk:room:add/remove (endgültig)
- talk:moderator:* -> talk:room:promote/demote (endgültig)
- talk:room:read-only -> talk:room:update --read-only= (endgültig)
- validate_room verwendet talk:monitor:room mit besserer Logik
- talk:room:list komplett entfernt (nicht verfügbar in NC34)
- show_chat_info verwendet talk:monitor:room

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:22:51 +01:00
7f4398df1b Fix: Alle Talk-Kommandos für Nextcloud 34 korrigiert
- talk:chat:create -> talk:room:create
- talk:participant:add/remove -> talk:room:add/remove
- talk:moderator:add/remove -> talk:room:promote/demote
- talk:room:read-only -> talk:room:update --read-only=1/0
- talk:room:list -> entfernt (nicht verfügbar in NC34)
- validate_room verwendet jetzt talk:monitor:room
- Robustere Fehlerbehandlung

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 16:22:03 +01:00
a007c67771 Fix: Alle Ausgaben bleiben sichtbar - Nutzer muss nach jeder Aktion Enter drücken
- clear aus show_menu() entfernt
- Jede Funktion zeigt Menü an und wartet auf Enter
- Fehlermeldungen sind jetzt immer sichtbar
- Exit-Codes und Outputs werden angezeigt

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 13:31:33 +01:00
ecf87e4c23 Fix: Auto-detect current directory if occ exists locally
- Prüft zuerst, ob ./occ und ./config/config.php existieren
- Falls ja, verwendet aktuelles Verzeichnis als Nextcloud-Pfad
- Deutlich verbesserte Pfaderkennung
- Automatische Upgrade-Prüfung mit Abfrage
- Verbesserte Talk-App-Erkennung (spreed/talk)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 13:22:33 +01:00
c5fae77c18 Fix: Talk-App wird als 'spreed' statt 'talk' in app:list angezeigt
- Geändert: app:list prüft jetzt auf 'spreed' UND 'talk'
- Hinzugefügt: Automatische Aktivierung von spreed falls deaktiviert
- Verbessert: Fehlermeldungen sind klarer

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 13:07:24 +01:00
c6028d9b77 Fix: Improved version with automatic Nextcloud detection and debug output
- Auto-detect Nextcloud directory path
- Auto-detect PHP path
- Show exact OCC commands being executed
- Display exit codes and output for debugging
- Added debug menu option (d)
- Better error handling and user feedback

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 12:57:07 +01:00
1f1f436dd4 Add Nextcloud Talk chat management scripts
- nextcloud_talk_manager.sh: Interactive Bash script for chat management
- nextcloud_talk_manager.php: Alternative PHP version
- README.md: Documentation

Features:
- Create chats
- Add/remove users from chats
- Assign/remove moderator rights
- Lock/unlock chats (read-only)
- List all chats
- Show chat info

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-30 12:44:07 +01:00