TelepathyIM / telepathy-morse

Telegram connection manager for the Telepathy framework
GNU General Public License v2.0
62 stars 10 forks source link

Add an option to limit incoming unread messages on update #59

Open Kaffeine opened 6 years ago

Kaffeine commented 6 years ago

It is possible to have thousands of unread messages and it makes little sense to actually spam them out during one of the connection step (updates receiving).

Right now it can hang Telepathy Client for a while and we don't want such behavior at all — the proper solution is to expose Dialogs telepathy interface and say (via DBus) that we have N new messages in M dialogs and maybe send the content of the last message.

We need Dialogs API and Service-side Logging API to handle "thousands of unread messages on connect" situation properly.