]> git.giacomolli.uk - onechat/commit
Move whatsapp_find to its own file
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 21:39:43 +0000 (18:39 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sun, 8 Nov 2026 21:39:43 +0000 (18:39 -0300)
commit2e2524881dfe8f6c5cabfd9d342d5d3492953bd4
tree0e69aab4efde947277b6e5f271dcf2fc5dd62859
parenta6a82d96b4906e9e1f09f45f69f48124f11ae1bb
Move whatsapp_find to its own file

The search of whatsapp_find is now the function whatsappFind in
whatsapp_find.go, with its matches, its fold of the names, and its
answer. It owns no state: it gets a WhatsAppLink for the device, the
client, and the own IDs, and the WhatsAppGroups for the names of the
groups. WhatsApp.Find stays the entry point of the tool and gives the
current link. The tests of the tool move to whatsapp_find_test.go. The
behavior does not change.

Issue: 6f69ca1
whatsapp.go
whatsapp_fake_helper_test.go
whatsapp_find.go [new file with mode: 0644]
whatsapp_find_test.go [new file with mode: 0644]
whatsapp_test.go