Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

added safe public methods to store #516

Open artem-webdev opened 3 years ago

artem-webdev commented 3 years ago

added safe public methods to store

for exapmle

func (h *waHandler) HandleNewContact(contact whatsapp.Contact) {

    err := h.wac.Store.AddContact(contact)
    if err != nil {
        log.Println(err)
        return 
    }

}
...etc
artem-webdev commented 3 years ago

it can be seen that the store does not use the connect, so let there be methods for store object

artem-webdev commented 3 years ago

@SchulteMK Still in progress? - no, this is final

beshoo commented 3 years ago

@SchulteMK please can you review this PL. With Regard