Remove avatarDiscoSent
This commit is contained in:
@@ -16,10 +16,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type avatarAvailability int
|
type avatarAvailability int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
avatarDiscoSent avatarAvailability = iota
|
avatarAvailable avatarAvailability = iota
|
||||||
avatarAvailable
|
|
||||||
avatarUnavailable
|
avatarUnavailable
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -254,7 +252,7 @@ func (b *Bxmpp) handleXMPP() error {
|
|||||||
if !sok {
|
if !sok {
|
||||||
b.Log.Debugf("Sending disco to %s", v.Remote)
|
b.Log.Debugf("Sending disco to %s", v.Remote)
|
||||||
b.xc.DiscoverEntityItems(v.Remote)
|
b.xc.DiscoverEntityItems(v.Remote)
|
||||||
b.avatarAvailability[v.Remote] = avatarDiscoSent
|
b.avatarAvailability[v.Remote] = avatarUnavailable
|
||||||
} else if state == avatarAvailable {
|
} else if state == avatarAvailable {
|
||||||
avatar = getAvatar(b.avatarMap, v.Remote, b.General)
|
avatar = getAvatar(b.avatarMap, v.Remote, b.General)
|
||||||
if avatar == "" {
|
if avatar == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user