We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18372a0 commit 46bcca7Copy full SHA for 46bcca7
notification.go
@@ -138,6 +138,8 @@ func (cli *Client) handleDeviceNotification(node *waBinary.Node) {
138
}
139
140
func (cli *Client) handleFBDeviceNotification(node *waBinary.Node) {
141
+ cli.userDevicesCacheLock.Lock()
142
+ defer cli.userDevicesCacheLock.Unlock()
143
jid := node.AttrGetter().JID("from")
144
userDevices := parseFBDeviceList(jid, node.GetChildByTag("devices"))
145
cli.userDevicesCache[jid] = userDevices
0 commit comments