Fix attempt #3

Source: https://github.com/ChatSecure/XMPPFramework/commit/bc7d273b5e61625a246a6f02959e2e1906010d60