Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of unread messages #651

Closed
sanmiguel2019 opened this issue May 19, 2021 · 8 comments
Closed

Number of unread messages #651

sanmiguel2019 opened this issue May 19, 2021 · 8 comments

Comments

@sanmiguel2019
Copy link

Is your feature request related to a problem? Please describe.

Users who use Tinode with rest auth may need to know the number of unread messages for each user to show this number on a parent application. Now the ony way to do this is to subscribe to me topic but this loads a huge amount of unnecessary data (avatars, user agents, etc, etc, that need processing, calculating.

Describe the solution you'd like

  1. get message could have what option like unread that returns only readId and seqId for each topic, probably without a need to attach, to make things much easer.
  2. Tinode could store/increase the number of unread messages in the memory and reset it when user interacts in a client.
@or-else
Copy link
Contributor

or-else commented May 19, 2021

@Chr728
Copy link

Chr728 commented Dec 22, 2021

was the feature already added or do you want me to add this feature? if possible please give details of what is needed to add I am interested to collaborate on this.

@or-else
Copy link
Contributor

or-else commented Dec 23, 2021

  1. get message could have what option like unread that returns only readId and seqId for each topic, probably without a need to attach, to make things much easer.

I you want to do just (1) then it's not too hard. I don't think (2) is needed: the cache already exists, but querying it from the client is not obviously needed.

@Chr728
Copy link

Chr728 commented Dec 23, 2021

ok will trying looking to do just (1) . thank you

@Chr728
Copy link

Chr728 commented Dec 24, 2021

@or-else is there any way to chat with you regarding this issue over discord or any platform you prefer please?

@or-else
Copy link
Contributor

or-else commented Dec 24, 2021

You are welcome to post to https://groups.google.com/d/forum/tinode and we will respond. We do not use chat for discussions because we want discussions to be publicly archived and searchable by all.

@Chr728
Copy link

Chr728 commented Dec 26, 2021

@or-else thank you, I wrote and will wait for the answer.

@or-else
Copy link
Contributor

or-else commented May 30, 2022

I think this is outdated. Please post an update if it's still needed/relevant.

@or-else or-else closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants