Converse.js: Per-user or per-room unread messages indicator

Created on 11 Jan 2017  路  22Comments  路  Source: conversejs/converse.js

For example:
I have 2 friends in chat, Olga and Jon. Right now i chating with Jon, but Olga sent me two messages and i don't what to read they. Can i see number of unread messages from Olga after i update the page?
Or can i send some messages in "unread list"?
P.S. sorry for my english


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Feature

Most helpful comment

Just want to throw in my support for this. I'm also really interested in Inverse (which I assume is what you were referring to) for an enterprise application I currently support which uses Converse. I haven't gotten a chance to dive too deep into the source yet due to deadlines and the Windows Makefile being broken, but would be interested in contributing. I did eventually get the project to compile using the new Windows Subsystem for Linux so hopefully I'll have time soon to look into this.

All 22 comments

Converse.js currently doesn't have a per-user or per-room unread messages indicator and doesn't keep track of unread messages.

I might be adding such a feature in the coming weeks/months since it's required for a project I'm working on.

Just want to throw in my support for this. I'm also really interested in Inverse (which I assume is what you were referring to) for an enterprise application I currently support which uses Converse. I haven't gotten a chance to dive too deep into the source yet due to deadlines and the Windows Makefile being broken, but would be interested in contributing. I did eventually get the project to compile using the new Windows Subsystem for Linux so hopefully I'll have time soon to look into this.

I don't really understand why this is a desired feature in Converse.js. From what I can tell this isn't necessary.

You always have chat boxes for users so you either see the message appear or if the chat box is minimized then there is already an unread messages counter.

I do want to implement this for inverse, but that's handled as a different project with its own issue tracker.

I'm therefore closing this.

If i am offline and I send a message to an offline friend, he will never see my message. If he have received 10 messages from 10 persons its the same issue.

We need unread messages counter :p

If i am offline and I send a message to an offline friend, he will never see my message. If he have received 10 messages from 10 persons its the same issue.

How can you send a message if you're offline?

Also, my understanding is that whether or not a user sees a message sent while he was offline is dependent on the XMPP server and not on the client.

It's the XMPP server's job to keep the message until that user comes online and then to deliver that message.

See here: https://xmpp.org/extensions/xep-0160.html

Yes but unread messages counter is needed if there is multiple messages sent by multiple users to one offline user , rounded counter notification I mean

Why? I still don't understand why. Once the messages are delivered, chat boxes will open to show them and if the chat boxes are minimized they will have unread messages notifications.

I don't know what a "rounded corner notification" is. Can you show an example or screenshot?

That would only make sense when the chat boxes are minimized, right?

No, when no chatbox is open. Look at the chat list only :)

Its useful on responsive I swear

No, when no chatbox is open

When new (and also old/delayed) messages are received a new chatbox is opened. So there is always a chatbox opened.

But ok, it might not be visible on mobile. I didn't really think people used converse.js on mobile. There are mobile XMPP clients which are better suited for mobile usage.

Yes right. Thanks for re opening the issue

I can provide you my responsive code for conversejs if you want

@Majaspic yes please

@jcbrand oh sorry I have only the responsive version of conversejs 2.0.0 version, it's an old one

You should upgrade to 3.0.0. There are known security holes in versions before 2.0.6.

@jcbrand Oh ok I will do , thanks! You know, more than 700 users are using the responsive version of conversejs on my site :)

inVerse has been released already.

i have similar problem. for example i have 4 chat groups i want to re order chat groups according to latest message.
e.g if group 3 received latest message it should be on top... but converse order is alphabetic. can we change that so latest message group should be first one ?

what if a user get chat messages from 10 people it will open 10 chat boxes ? i am taking about full screen mode ? it will open only one chat group then user will don't know about other 9 messages... i am taking about huge number of groups here say if we have 100 groups and only one will be opened user has to go to each one to check if there are new messages ? there should be and indicator where he can see in list that this group has 2 unread messages.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

irfancnk picture irfancnk  路  6Comments

cesarplata picture cesarplata  路  6Comments

licaon-kter picture licaon-kter  路  7Comments

ghost picture ghost  路  7Comments

srgcdev picture srgcdev  路  3Comments