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

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
+4 -2
View File
@@ -2191,9 +2191,11 @@ export class AuthService {
if (Number.isFinite(latestBlockNumber) && latestBlockNumber >= 0 && latestBlockHash) {
prevLineNumber = latestBlockNumber;
prevLineHashHex = latestBlockHash;
thisLineNumber = Number.isFinite(latestLineStep)
thisLineNumber = latest?.kind === 'created'
? 0
: Number.isFinite(latestLineStep)
? Math.max(0, latestLineStep + 1)
: Math.max(1, latestBlockNumber === lineCode ? 1 : 0);
: (latestBlockNumber === lineCode ? 0 : 1);
}
} catch {
// fallback to root anchor