send_time -> timestamp

This commit is contained in:
Alois 2026-04-02 00:35:36 +02:00
commit 6bb0f0dd0a
3 changed files with 6 additions and 6 deletions

View file

@ -65,13 +65,13 @@ export default function InputComponent() {
height, height,
content: encryptedContext, content: encryptedContext,
receiver_id: currentUserId, receiver_id: currentUserId,
send_time: time, timestamp: time,
}).catch((e) => { }).catch((e) => {
log(0, "Chat", "red", "Failed to send message", e, { log(0, "Chat", "red", "Failed to send message", e, {
content: currentValue, content: currentValue,
encryptedContext, encryptedContext,
receiver_id: currentUserId, receiver_id: currentUserId,
send_time: time, timestamp: time,
}); });
reference.setFailed(true); reference.setFailed(true);
toast("error", "Failed to send message"); toast("error", "Failed to send message");

View file

@ -117,7 +117,7 @@ export const socket = {
request: z.object({}), request: z.object({}),
response: z.object({ response: z.object({
sender_id: z.number(), sender_id: z.number(),
send_time: z.number(), timestamp: z.number(),
message, message,
}), }),
}, },
@ -136,7 +136,7 @@ export const socket = {
height: z.number(), height: z.number(),
content: z.base64(), content: z.base64(),
receiver_id: z.number(), receiver_id: z.number(),
send_time: z.number(), timestamp: z.number(),
files: z.array(fileFromMessage).optional(), files: z.array(fileFromMessage).optional(),
}), }),
response: z.object({}), response: z.object({}),

View file

@ -134,7 +134,7 @@ const DATA_TYPES = [
"content", "content",
"messages", "messages",
"notifications", "notifications",
"send_time", "timestamp",
"get_time", "get_time",
"get_variant", "get_variant",
"shared_secret_own", "shared_secret_own",
@ -222,7 +222,7 @@ registerDataKinds("number", [
"start_date", "start_date",
"end_date", "end_date",
"omikron_id", "omikron_id",
"send_time", "timestamp",
"sub_level", "sub_level",
"sub_end", "sub_end",
"last_message_at", "last_message_at",