Fix up resend logic to be cleaner

This commit is contained in:
Jack Kingsman
2026-03-13 22:07:16 -07:00
parent 39a687da58
commit b4962d39f0
5 changed files with 32 additions and 25 deletions
+1 -6
View File
@@ -20,6 +20,7 @@ import type {
RadioDiscoveryResponse,
RadioDiscoveryTarget,
PathDiscoveryResponse,
ResendChannelMessageResponse,
RepeaterAclResponse,
RepeaterAdvertIntervalsResponse,
RepeaterLoginResponse,
@@ -34,12 +35,6 @@ import type {
UnreadCounts,
} from './types';
export interface ResendChannelMessageResponse {
status: string;
message_id: number;
message?: Message;
}
const API_BASE = '/api';
async function fetchJson<T>(url: string, options?: RequestInit): Promise<T> {
+6
View File
@@ -247,6 +247,12 @@ export interface MessagesAroundResponse {
has_newer: boolean;
}
export interface ResendChannelMessageResponse {
status: string;
message_id: number;
message?: Message;
}
type ConversationType = 'contact' | 'channel' | 'raw' | 'map' | 'visualizer' | 'search';
export interface Conversation {