feat: add geolocation support for messages and replies
All checks were successful
Deploy XIP / deploy (push) Successful in 53s

This commit is contained in:
arussac
2026-05-31 16:42:32 +02:00
parent 9354e2022a
commit 366d4e8f8b
4 changed files with 183 additions and 5 deletions

View File

@@ -13,6 +13,14 @@ export function useMyPerks() {
return { myPerks };
}
export interface GeoInfo {
country: string;
countryCode: string;
city: string;
lat?: number;
lon?: number;
}
export interface Reply {
id: string;
content: string;
@@ -20,6 +28,7 @@ export interface Reply {
createdAt: string;
parentId?: string | null;
authorPerks?: Perks;
authorGeo?: GeoInfo | null;
richMode?: 'none' | 'htmlcss' | 'js';
richContent?: string | null;
attachments?: Attachment[];
@@ -126,6 +135,7 @@ export function useMessages() {
createdAt: raw.createdAt,
parentId: raw.parentId,
authorPerks: raw.authorPerks,
authorGeo: raw.authorGeo,
richMode: raw.richMode,
richContent: raw.richContent,
attachments: raw.attachments,