fix(chat): node online status race, WELCOME peer_needed off-by-one, JOIN missing proto byte

- node_put/node_update_verified: set online=1 on INSERT (nodes created when conn is UP)
- channel_peers_all: fix peer_needed calculation (atl byte was missing)
- cs_send_channel_join: add proto byte to address serialization matching all parsers
This commit is contained in:
evgeny committed 2026-08-06 01:18:27 +03:00
1 parent 38eb51c679
commit f476188566
18 files changed
+431 -24

No files matched your search

+19
View File
@@ -1186,3 +1186,22 @@ void MessageDelegate::drawAvatar(QPainter *p, const Layout &L,
p->drawPixmap(L.avatarRect, av);
p->restore();
}
void MessageDelegate::startAutoPlay(const QString& filePath, float durationSec) {
ensureVoiceTimer();
VoicePlayState& st = s_voiceStates[filePath];
st.playing = true;
st.paused = false;
st.durationSec = (durationSec > 0) ? durationSec : 1.0f;
st.startMs = QDateTime::currentMSecsSinceEpoch();
st.pausedPosSec = 0.0f;
st.displayFrac = 0.0f;
st.displayElapsed = 0.0f;
s_voiceTimer->start();
if (s_voiceView) s_voiceView->viewport()->update();
}
void MessageDelegate::stopAllAutoPlay() {
for (auto it = s_voiceStates.begin(); it != s_voiceStates.end(); ++it)
it->playing = false;
}