Mercurial Hosting > chat
comparison src/chat.js @ 61:d4d154b404f8
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 04 Mar 2025 21:29:17 -0700 |
| parents | 3521166513b3 |
| children | afd5ab5b02a2 |
comparison
equal
deleted
inserted
replaced
| 60:3521166513b3 | 61:d4d154b404f8 |
|---|---|
| 177 if( currentChatId ) { | 177 if( currentChatId ) { |
| 178 let current = document.querySelector(`div[chat="${currentChatId}"]`); | 178 let current = document.querySelector(`div[chat="${currentChatId}"]`); |
| 179 if( current ) { | 179 if( current ) { |
| 180 current.setAttribute('selected',''); | 180 current.setAttribute('selected',''); |
| 181 current.scrollIntoViewIfNeeded(false); | 181 current.scrollIntoViewIfNeeded(false); |
| 182 clearUnread(); | |
| 182 } else { | 183 } else { |
| 183 currentChatId = null; | 184 currentChatId = null; |
| 184 document.querySelector('div[posts]').innerHTML = ''; | 185 document.querySelector('div[posts]').innerHTML = ''; |
| 185 } | 186 } |
| 186 } | 187 } |
