~samwhited/xmpp

54b1b91fda7ff275377bed583d27b1746d192a41 — Sam Whited 2 months ago a3e4231
muc: fix broken tests

Don't check for the 110 status code, just check that we're expecting a
presence.

Signed-off-by: Sam Whited <sam@samwhited.com>
1 files changed, 1 insertions(+), 4 deletions(-)

M muc/muc.go
M muc/muc.go => muc/muc.go +1 -4
@@ 169,10 169,7 @@ func (c *Client) HandlePresence(p stanza.Presence, r xmlstream.TokenReadEncoder)

	switch p.Type {
	case stanza.AvailablePresence:
		// TODO: make consts for the statuses when possible. Wait until we can
		// determine if they can be generated or have to be hand rolled first.
		// See: https://github.com/xsf/registrar/pull/38
		if decodedPresence.HasStatus(110) && channel.join != nil {
		if channel.join != nil {
			channel.join <- p.From
			channel.join = nil
			return nil