how to fix Unread Messages not working in odoo 11? - filter

i want to know how Unread Messages work in odoo 11.
In v8 it give all unread messages when i apply New Mail Filter
but in v11 i am not getting same result when i apply Unread Messages filter.
<filter string="Unread Messages" name="message_needaction" domain="[('message_needaction','=',True)]"/>

Related

Can I remove the message "This message was sent by Kibana. View rule in Kibana" in kibana alert mail?

I use Elasticsearch and kibana.
I created kibana alert rules and send messages by mails.
However in received mails footer, it has "This message was sent by Kibana. View rule in Kibana" message.
I want to remove this message from mails.
I don't know how solve this problem.

Is it possible to know the number of unread Slack messages a user has with the Slack API?

I'm building a messaging integration with Slack and a client. I need to show the badges on the corresponding conversations when the users logs in to the client to show the client how many unread messages it has.
I know that the channels.history method had the unreads parameter which would return as part of the response the amount of unread messages according to the user token, but that method is deprecated and my app is too new to use it.
I'm using the conversations.history now to retrieve the messages which is what slack suggest to use instead of the deprecated method channel.history, but this new method doesn't have that parameter and doesn't show any info regarding the amount of unread messages in the conversation.
As my app is a new one and not a classic one, I cannot use the RTM API.
I'm also subscribed to the message events so that I know when a new message was posted.
My issue is that I need to know how many new messages were sent to the user while he was not logged in.
Is there any way to get that info?
Unread count is in conversations.info method, not in conversations.history. There in unread_count and unread_count_display property in reponse. Documentation is here.

Elastalert - Aggregation issue's

I am using Elasticsearch and Elastalert to send simple alerts to my slack channel.
Everything was fine until I started using aggregation
and now it says that alert_sent:false.
I read some questions about aggregation not alerting. Is there a way to do it anyway ?
Cause when im using --save-json FILENAME option all related alerts are there!
But still I need to be able to send that alert, it used to work once i cant remember what i did but i received 1 alert containing 2 events on slack.

Advanced notification system (notify only about unread messages)

I'm building an application based on Laravel 5.6 with live chat functionality (uses Pushier).
I need to notify Users via email about new messages. The problem is that I should not send notification each time as message sent because user can be online and receive this message. Also if theme were 20 messages in a minute I do not need to send 20 emails, just one with "you have new messages".
My idea is:
1. on each message I have a Laravel Notification "Message received". If user online - notification deletes. So in notifications table I have notifications about unreceived messages.
2. I should run Task (e.g. each 15 min) and if there Notification(s) for User - sent email "You have unread messages".
3. Now I have the problem that if user won't read notifications during 15 min - he will receive email again.. So I need to store in some table (or expand current notification table with mark) data about Notifications that already was emailed.
Is my approach correct?
Thanks!

Bot Framework does not notify about Telegram messages that begin with a mention

I’m testing with the following setup: I have a bot with privacy mode disabled, so it listens to all messages in a channel. I have a webhook set in the Bot Framework that prints all incoming messages. I noticed the issue first on Telegram web and later discovered that it also affects Android, where you don’t get notifications only if you type a mention manually—if you select a mention from the drop-down, a notification gets sent.
Here are the screenshots of the channel where I was sending messages:
And here are the messages I got from the webhook:
new message: this message sent from web will be relayed even if it contains the mention #jlarky
new message: #JLarkyTestBot you can mention the bot though
new message: ^^ last message from web
new message: Now message from Android
new message: Yarosla mentions work
new message: Yarosla it has to be from mention dropdown, otherwise it's not sent either
As you can see, only a part of them was delivered.

Resources