Каналы: исправить редактирование профиля

This commit is contained in:
AidarKC
2026-08-01 02:29:11 +04:00
parent 8303682bd7
commit e8398df9fc
4 changed files with 18 additions and 15 deletions
@@ -417,7 +417,7 @@ final class ChannelsReadSupport {
event.bchName = rs.getString("bch_name"); event.bchName = rs.getString("bch_name");
event.blockNumber = rs.getInt("block_number"); event.blockNumber = rs.getInt("block_number");
event.blockHash = rs.getBytes("block_hash"); event.blockHash = rs.getBytes("block_hash");
event.lineStep = (Integer) rs.getObject("this_line_number"); event.lineStep = null;
try { try {
BchBlockEntry entry = new BchBlockEntry(rs.getBytes("block_bytes")); BchBlockEntry entry = new BchBlockEntry(rs.getBytes("block_bytes"));
event.createdAtMs = entry.timestamp * 1000L; event.createdAtMs = entry.timestamp * 1000L;
+2 -2
View File
@@ -1,2 +1,2 @@
client.version=1.4.12 client.version=1.4.13
server.version=1.4.3 server.version=1.4.4
+4 -2
View File
@@ -2191,9 +2191,11 @@ export class AuthService {
if (Number.isFinite(latestBlockNumber) && latestBlockNumber >= 0 && latestBlockHash) { if (Number.isFinite(latestBlockNumber) && latestBlockNumber >= 0 && latestBlockHash) {
prevLineNumber = latestBlockNumber; prevLineNumber = latestBlockNumber;
prevLineHashHex = latestBlockHash; prevLineHashHex = latestBlockHash;
thisLineNumber = Number.isFinite(latestLineStep) thisLineNumber = latest?.kind === 'created'
? 0
: Number.isFinite(latestLineStep)
? Math.max(0, latestLineStep + 1) ? Math.max(0, latestLineStep + 1)
: Math.max(1, latestBlockNumber === lineCode ? 1 : 0); : (latestBlockNumber === lineCode ? 0 : 1);
} }
} catch { } catch {
// fallback to root anchor // fallback to root anchor
+10 -9
View File
@@ -4352,16 +4352,16 @@ textarea.input {
} }
.channel-row { .channel-row {
grid-template-columns: 40px minmax(0, 1fr) 64px; grid-template-columns: 64px minmax(0, 1fr) 64px;
gap: 10px; gap: 10px;
padding: 12px; padding: 12px;
} }
.channel-row .avatar { .channel-row .avatar {
width: 38px; width: 64px;
height: 38px; height: 64px;
min-width: 38px; min-width: 64px;
min-height: 38px; min-height: 64px;
} }
.channel-row-title { .channel-row-title {
@@ -5034,10 +5034,11 @@ textarea.input {
} }
.channel-row .avatar { .channel-row .avatar {
width: 44px; width: 68px;
height: 44px; height: 68px;
min-width: 44px; min-width: 68px;
min-height: 44px; min-height: 68px;
border-radius: 50%;
color: #ffffff; color: #ffffff;
font-weight: 700; font-weight: 700;
} }