loqui / im

Loqui IM allows you to use all your chat accounts in just one FirefoxOS or Ubuntu Touch app.
https://loqui.im
304 stars 112 forks source link

{loqui im} {whats app} {firefox os 2.0} Group messages are still sent as plaintext / are rejected #1231

Open janu2015 opened 7 years ago

janu2015 commented 7 years ago

Hi,

is there a chance to update loqui to send group messages encrypted instead of being sent as plaintext (until S40 support is discontinued by WA)? About two weeks ago I was informed that group messages sent by my loqui.im are rejected by all group participants that don't support plaintext messages anymore.

Checking the code I found that all group messages are sent as plaintext. The Promise mentioned here is never fulfilled:

  function encryptMessage (remoteJid, plaintext) {
    return new Promise(function (ready, reject) {
      var myJid = account.core.fullJid;

      if (axolLocalReg && isNotGroupJid(remoteJid)) {
        //
        // encryption for single chats only
        //
      } else {
        reject();
      }

im\src\scripts\loqui\connectors\coseme.js

I removed the isNotGroupJid() condition but that led to http response code 406. Any help would be greatly appreciated :)