fix: couple of UI updates, fix: add pre release support to release workflow (#609)

This commit is contained in:
Dan Ditomaso
2025-05-05 11:47:36 -04:00
committed by GitHub
parent 170abfcc2f
commit 1c453e2981
4 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -19,6 +19,7 @@ import {
} from "@core/stores/messageStore/index.ts";
import { useSidebar } from "@core/stores/sidebarStore.tsx";
import { Input } from "@components/UI/Input.tsx";
import { randId } from "@core/utils/randId.ts";
type NodeInfoWithUnread = Protobuf.Mesh.NodeInfo & { unreadCount: number };
@@ -113,8 +114,8 @@ export const MessagesPage = () => {
} catch (e: any) {
console.error("Failed to send message:", e);
// Note: messageId might be undefined here if the error occurred before it was assigned
const failedId = messageId ?? randId();
if (chatType === MessageType.Broadcast) {
const failedId = messageId ?? `failed-${Date.now()}`;
setMessageState({
type: chatType,
channelId: channelValue,
@@ -122,7 +123,7 @@ export const MessagesPage = () => {
newState: MessageState.Failed,
});
} else { // MessageType.Direct
const failedId = messageId ?? `failed-${Date.now()}`;
const failedId = messageId ?? randId();
setMessageState({
type: chatType,
nodeA: getMyNodeNum(),