coyim / coyim

coyim - a safe and secure chat client

Home Page:https://coy.im

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A warning occurs when joining a public room (chat.disroot.org)

Cris2760 opened this issue · comments

WARN[0230] Got a presence without resource in 'from' - this is likely an error  account=ivan1@testjabber.autonomia.digital component=session from=blackjackhookers@chat.disroot.org stanza="&{{jabber:client presence} blackjackhookers@chat.disroot.org  ivan1@testjabber.autonomia.digital/nfakslny      <nil> <nil> <nil> <x xmlns='vcard-temp:x:update'><photo/></x> <nil> <nil>}"

We noticed that when joining a room configured with a photo, a presence stanza with information about the photo is received:

<presence xmlns="jabber:client" from="room@chat.service.org" to="user@foo.server/bla">
    <x xmlns="vcard-temp:x:update">
        <photo>cdrdi7sbtfi8aanfc3e9d8ad2696b011396dezf8</photo>
    </x>
</presence>

We will avoid to print warnings for these kind of presence stanzas because we are not handling them yet.

Approved in user-test, it's ready to code-review

OK