mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:41:37 +00:00
Fix telegram threadId in deliveryContext
This commit is contained in:
committed by
Ayaan Zaidi
parent
e849df64dc
commit
a642ca4ea8
@@ -55,7 +55,14 @@ function invalidateSessionStoreCache(storePath: string): void {
|
||||
}
|
||||
|
||||
function normalizeSessionEntryDelivery(entry: SessionEntry): SessionEntry {
|
||||
const normalized = normalizeSessionDeliveryFields(entry);
|
||||
const normalized = normalizeSessionDeliveryFields({
|
||||
channel: entry.channel,
|
||||
lastChannel: entry.lastChannel,
|
||||
lastTo: entry.lastTo,
|
||||
lastAccountId: entry.lastAccountId,
|
||||
lastThreadId: entry.lastThreadId ?? entry.origin?.threadId,
|
||||
deliveryContext: entry.deliveryContext,
|
||||
});
|
||||
const nextDelivery = normalized.deliveryContext;
|
||||
const sameDelivery =
|
||||
(entry.deliveryContext?.channel ?? undefined) === nextDelivery?.channel &&
|
||||
|
||||
Reference in New Issue
Block a user