Исправить отображение версий в дневнике и тредах

This commit is contained in:
AidarKC
2026-08-10 17:55:27 +04:00
parent a7bf07130e
commit ed9e6ce676
5 changed files with 84 additions and 12 deletions
+4 -3
View File
@@ -2246,7 +2246,8 @@ export function render({ navigate, route }) {
const onEditPost = async (messageRef, text) => {
const { login, storagePwd } = requireSigningSession();
if (!activeSelector?.ownerBlockchainName || activeSelector.channelRootBlockNumber == null) {
const isDiaryEdit = isDiarySelector(activeSelector);
if (!isDiaryEdit && (!activeSelector?.ownerBlockchainName || activeSelector.channelRootBlockNumber == null)) {
throw new Error('Идентификатор канала не готов.');
}
await authService.addBlockEditMessage({
@@ -2254,8 +2255,8 @@ export function render({ navigate, route }) {
storagePwd,
message: messageRef,
text,
isChannelPost: true,
channel: activeSelector,
isChannelPost: !isDiaryEdit,
channel: isDiaryEdit ? null : activeSelector,
});
softHaptic(12);
showToast('Сообщение обновлено');