Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 5ed5770a4f1844161d8abe6551b20bec195c3872 Author: Polynomdivision <papatutuwawa@polynom.me> Date: Sat Oct 30 15:50:37 2021 +0000 Do not fail on no avatar data (xmpp) #1529 (#1627) * Detect errors when working with AvatarData * Remove not neccessary line Co-authored-by: Wim <wim@42.be> diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 687ca07..cf58a2f 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -2837 +28313 @@ func (b *Bxmpp) handleXMPP() error {   for {   m, err := b.xc.Recv()   if err != nil { - return err + // An error together with AvatarData is non-fatal + switch m.(type) { + case xmpp.AvatarData: + continue + default: + return err + }   }     switch v := m.(type) {