fix: persist deliveryContext on last-route updates
Co-authored-by: Adam Holt <mail@adamholt.co.nz>
This commit is contained in:
@@ -121,8 +121,10 @@ describe("monitorIMessageProvider", () => {
|
||||
|
||||
expect(updateLastRouteMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
channel: "imessage",
|
||||
to: "+15550004444",
|
||||
deliveryContext: expect.objectContaining({
|
||||
channel: "imessage",
|
||||
to: "+15550004444",
|
||||
}),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -453,9 +453,11 @@ export async function monitorIMessageProvider(opts: MonitorIMessageOpts = {}): P
|
||||
await updateLastRoute({
|
||||
storePath,
|
||||
sessionKey: route.mainSessionKey,
|
||||
channel: "imessage",
|
||||
to,
|
||||
accountId: route.accountId,
|
||||
deliveryContext: {
|
||||
channel: "imessage",
|
||||
to,
|
||||
accountId: route.accountId,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user