mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-12 03:33:03 +02:00
Fix up resend logic to be cleaner
This commit is contained in:
+1
-6
@@ -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> {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user