Luna_Mora
(Luna Mora)
22 Febbraio 2026, 3:47am
1
Quando un canale di chat è stato archiviato, l’opzione Admin ‘apri canale’ apre la modale ‘chiudi canale’ e quindi genera un errore.
Nota: questo canale di chat è stato archiviato in un argomento. Non ho testato per vedere se funziona allo stesso modo per un canale di chat non archiviato prima in un thread.
Passaggi:
Su un canale archiviato che è stato esportato in un thread, fare clic su ‘apri canale’:
Fare clic su ‘chiudi canale’:
1 Mi Piace
sam
(Sam Saffron)
23 Febbraio 2026, 5:37am
2
Penso che il bug qui sia che i canali archiviati non dovrebbero nemmeno essere autorizzati a essere riaperti?
@lindsey come pensi che dovrebbe comportarsi, la soluzione più semplice è probabilmente nascondere semplicemente il pulsante sui canali archiviati.
2 Mi Piace
Ho fatto così ^^ e ho aggiunto un tooltip che spiega perché il pulsante è disabilitato.
main ← fix/chat-open-channel-archived-readonly
opened 09:07AM - 25 Feb 26 UTC
The channel settings page used a simple `isOpen` / `else` conditional to render … the close/open channel toggle. Any non-open channel (closed, read-only, archived) would show an "Open channel" button. Clicking it on an archived or read-only channel would open the "Close channel" modal instead, which then failed with a server error because the guardian only allows `closed → open` transitions.
Replace the `else` branch with an explicit `isClosed` check so only closed channels get an active "Open channel" button. For archived and read-only channels, render a disabled button wrapped in a `DTooltip` that explains why reopening is not possible.
Here's how the tooltip looks like
<img width="1590" height="1343" alt="2026-02-25 @ 08 57 34" src="https://github.com/user-attachments/assets/7220065a-6c03-480c-bb91-b24da04ae496" />
https://meta.discourse.org/t/396707
4 Mi Piace
Questo argomento è stato chiuso automaticamente dopo 4 giorni. Non sono più consentite nuove risposte.