Switch back to go-whatsapp upstream

This commit is contained in:
Tulir Asokan
2018-08-31 11:24:27 +03:00
parent 79851a62b4
commit e4a78832ad
6 changed files with 35 additions and 43 deletions

View File

@ -87,9 +87,9 @@ func newInfoFromReq(info map[string]interface{}) *Info {
/*
SetClientName sets the long and short client names that are sent to WhatsApp when logging in and displayed in the
WhatsApp Web device list. As the values are only sent when logging in, changing them after logging in is not possible.
*/
*/
func (wac *Conn) SetClientName(long, short string) error {
if wac.session != nil && (wac.session.EncKey != nil || wac.session.MacKey != nil) {
if wac.session != nil && (wac.session.EncKey != nil || wac.session.MacKey != nil) {
return fmt.Errorf("cannot change client name after logging in")
}
wac.longClientName, wac.shortClientName = long, short