Fix #357 (with thanks to @I3rixon)
Fix #357 (with thanks to @I3rixon)

DGO143/cryptocat,DoNotUseThisCodeJUSTFORKS/cryptocat,Raynes/cryptocat,arno01/cryptocat,b4zz4/Barricada,wakermahmud/cryptocat,Cryptodog/cryptocat,DoNotUseThisCodeJUSTFORKS/cryptocat,Raynes/cryptocat,DGO143/cryptocat,wakermahmud/cryptocat,DoNotUseThisCodeJUSTFORKS/cryptocat,Cryptodog/cryptocat,Raynes/cryptocat,b4zz4/Barricada,b4zz4/Barricada,arno01/cryptocat,PeterDaveHello/cryptocat,b4zz4/Barricada,PeterDaveHello/cryptocat,DGO143/cryptocat