Reduce nesting in openBuddyMenu()
Reduce nesting in openBuddyMenu()

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