This commit is contained in:
sairaj mote 2022-12-21 20:54:27 +05:30
parent 777c8280c8
commit b760c1388b

View File

@ -2903,7 +2903,7 @@
getRef('messages_container').append(messageBody)
}
if (!chatScrollInfo['isScrolledUp']) {
scrollToBottom(true)
scrollToBottom()
}
// remove encryption badge if it exists
if (!groupID && floGlobals.pubKeys[activeChat.floID] && floID !== floDapps.user.id) {
@ -3672,6 +3672,7 @@
}
function scrollToBottom(smooth = false) {
console.log('scrolling to bottom')
if (activeChat.floID) {
messenger.removeMark(activeChat.floID, 'unread')
if (getChatCard(activeChat.floID))