Commit 6e9c77d
committed
feat(label): add syncLabels method to BaileysStartupService
Uses Baileys client.resyncAppState(['regular'], true) to force
an incremental re-download of WhatsApp app state (labels).
Waits 3s for LABELS_EDIT/LABELS_ASSOCIATION event handlers to
process, then returns updated labels from DB via fetchLabels().
Key: isLatest=true means incremental (safe, no disconnect).
isLatest=false would download full snapshot and cause disconnection.1 parent fc521b8 commit 6e9c77d
File tree
1 file changed
+15
-1
lines changed- src/api/integrations/channel/whatsapp
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
4255 | 4255 | | |
4256 | 4256 | | |
4257 | 4257 | | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
4258 | 4272 | | |
4259 | 4273 | | |
4260 | 4274 | | |
| |||
0 commit comments