Comment to 'Jot Security'
Comment to Jot Security
  • Will this still send the push notification? I don't want to disable them. Let me explain completely

    Push notification:

    Wise sent a message
    Hey how you doing?
    

    OneSignal stores the 'Hey how you doing' part for every message sent. I simply want to remove the talk part.

    Wise sent a message
    New message waiting in talk
    

    So every message would say that instead of the actual message, otherwise I have a privacy issue with third party.

    Thank you for your help @Alexey 🙏

    • Good point! I have added it to the features list https://github.com/unacms/jot-client-una/issues/310

      You may correct code in the same file modules/boonex/classes/BxMessngerModule.php.

      Find the function serviceGetMessageContent($aEvent)

      and replace this line:

      $sAlterBody = $sTruncatedMessage ? $sTruncatedMessage : _t('_bx_messenger_txt_sample_email_push', html2txt($sMessage));
      

      with this code:

      $sAlterBody = $sTruncatedMessage ? 'New message waiting in talk' : _t('_bx_messenger_txt_sample_email_push', html2txt($sMessage));