Commit 96e3bc8
committed
fix(whatsapp): always record per-contact last-route regardless of pin guard
The pin guard (pinnedMainDmRecipient) applies only to main session updates.
Per-contact sessions should always record their last-route since they are
independent of the main session pin state.
Updated test to use pinnedMainDmRecipient that differs from dmRouteTarget
to verify the per-contact session is updated even when not the pinned owner.1 parent 9b75bb6 commit 96e3bc8
2 files changed
Lines changed: 5 additions & 7 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
| 827 | + | |
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
265 | 263 | | |
266 | 264 | | |
267 | 265 | | |
| |||
0 commit comments