| 107 | 107 | const hiddenChats = fragment.querySelectorAll('.recentChat.hidden'); |
| 108 | 108 | fragment.querySelectorAll('button.showMoreChats').forEach((button) => { |
| 109 | 109 | button.addEventListener('click', () => { |
| 110 | 110 | const rotate = button.classList.contains('rotaterotated'); |
| 111 | 111 | hiddenChats.forEach((chatItem) => { |
| 112 | 112 | chatItem.classList.toggle('hidden', rotate); |
| 113 | 113 | }); |
| 114 | 114 | button.classList.toggle('rotaterotated', !rotate); |
| 115 | 115 | }); |
| 116 | 116 | }); |
| 117 | 117 | fragment.querySelectorAll('button.openTemporaryChat').forEach((button) => { |