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