Follow new messages near the bottom and always follow accepted sends

This commit is contained in:
evgeny committed 2026-11-03 00:16:33 +01:00
1 parent 39a9fe01a3
commit 0da3c3a677
2 files changed
+42 -12

No files matched your search

+2 -2
View File
@@ -1311,7 +1311,7 @@ void MainWindow::onDmMsgReceived(const QString& convId, quint64 author) {
QString key = QStringLiteral("dm:") + convId;
showIncomingMessageNotification(key, author);
if (m_currentChannelId == key) {
m_messageList->refresh();
m_messageList->refresh(author == m_db->myNodeId());
return;
}
if (author == m_db->myNodeId()) return;
@@ -1539,7 +1539,7 @@ void MainWindow::onMessageReceived(const char* ch_id, int ch_id_len, uint64_t au
SoundManager::instance()->play("msg_incoming");
if (m_messageList) {
if (cid == m_currentChannelId) {
m_messageList->refresh();
m_messageList->refresh(!initialSync && m_db && author == m_db->myNodeId());
} else if (m_channelList && !initialSync && m_db && author != m_db->myNodeId()) {
int unread = m_channelList->getChannelUnreadCount(cid) + 1;
DEBUG_DEBUG(DEBUG_CATEGORY_CHAT, "MainWindow::onMessageReceived increment unread ch=%s %d->%d",