@ethora/chat-component 26.2.27 → 26.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,3 +19,4 @@ export declare const signInWithGoogle: () => Promise<{
|
|
|
19
19
|
credential?: undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export declare function uploadFile(formData: FormData): Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
22
|
+
export declare function ensureUserFromMy(user: User | null | undefined): Promise<User | null>;
|
|
@@ -45,7 +45,9 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
45
45
|
private softPauseAfterSendMs;
|
|
46
46
|
private activeRoomBoostTtlMs;
|
|
47
47
|
private activeSendBoostMs;
|
|
48
|
+
private alwaysPrioritizeActiveRoom;
|
|
48
49
|
private backgroundWhileCriticalSend;
|
|
50
|
+
private disableLastRead;
|
|
49
51
|
private presenceFailureBackoffMs;
|
|
50
52
|
private startupPrivateStoreTimeoutMs;
|
|
51
53
|
private startupPrivateStoreTtlMs;
|
|
@@ -95,6 +97,9 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
95
97
|
private getSendLane;
|
|
96
98
|
setActiveRoomJid(roomJID: string | null): void;
|
|
97
99
|
private getTotalSendQueueLength;
|
|
100
|
+
private hasPendingActiveRoomPresenceRequest;
|
|
101
|
+
private hasPendingActiveRoomHistoryRequest;
|
|
102
|
+
isActiveRoomGateOpen(): boolean;
|
|
98
103
|
private hasPendingSendsForActiveRoom;
|
|
99
104
|
private shouldSuppressBackgroundHistory;
|
|
100
105
|
private updateBackgroundSuppressionMetrics;
|
|
@@ -86,6 +86,7 @@ export interface IConfig {
|
|
|
86
86
|
myEndpoint?: string;
|
|
87
87
|
};
|
|
88
88
|
newArch?: boolean;
|
|
89
|
+
disableLastRead?: boolean;
|
|
89
90
|
qrUrl?: string;
|
|
90
91
|
secondarySendButton?: {
|
|
91
92
|
enabled: boolean;
|
|
@@ -169,6 +170,7 @@ export interface IConfig {
|
|
|
169
170
|
softPauseAfterSendMs?: number;
|
|
170
171
|
activeRoomBoostTtlMs?: number;
|
|
171
172
|
activeSendBoostMs?: number;
|
|
173
|
+
alwaysPrioritizeActiveRoom?: boolean;
|
|
172
174
|
backgroundWhileCriticalSend?: boolean;
|
|
173
175
|
preloadTopKRooms?: number;
|
|
174
176
|
presenceFailureBackoffMs?: number;
|
|
@@ -10,12 +10,14 @@ export interface xmppSettingsInterface {
|
|
|
10
10
|
devServer?: string;
|
|
11
11
|
host?: string;
|
|
12
12
|
conference?: string;
|
|
13
|
+
disableLastRead?: boolean;
|
|
13
14
|
xmppPingOnSendEnabled?: boolean;
|
|
14
15
|
historyQoS?: {
|
|
15
16
|
maxInFlightHistory?: number;
|
|
16
17
|
softPauseAfterSendMs?: number;
|
|
17
18
|
activeRoomBoostTtlMs?: number;
|
|
18
19
|
activeSendBoostMs?: number;
|
|
20
|
+
alwaysPrioritizeActiveRoom?: boolean;
|
|
19
21
|
backgroundWhileCriticalSend?: boolean;
|
|
20
22
|
preloadTopKRooms?: number;
|
|
21
23
|
presenceFailureBackoffMs?: number;
|
|
@@ -65,6 +67,7 @@ export interface XmppClientInterface {
|
|
|
65
67
|
}): Promise<IMessage[] | undefined>;
|
|
66
68
|
promoteRoomHistory(roomJID: string): void;
|
|
67
69
|
setActiveRoomJid(roomJID: string | null): void;
|
|
70
|
+
isActiveRoomGateOpen(): boolean;
|
|
68
71
|
onCriticalSend(roomJID: string, messageId?: string): void;
|
|
69
72
|
enqueueHistoryTask(params: {
|
|
70
73
|
chatJID: string;
|