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

Support for number of unseen messages #26

Closed
dcokan opened this issue Apr 14, 2020 · 7 comments
Closed

Support for number of unseen messages #26

dcokan opened this issue Apr 14, 2020 · 7 comments

Comments

@dcokan
Copy link

dcokan commented Apr 14, 2020

Hi,

I am looking through your documentation and I cannot find the description of feature to see number of unseen messages in the group.

Looking into XEP standards I can see not approved yet standard XEP-0430 (Inbox) But I can see the status of that is only Experimental... So I am wondering whether the feature will be only implemented in future or that is handled by other standard?

Thanks, Dawid

@woj-tek
Copy link
Contributor

woj-tek commented Apr 14, 2020

I assume you refer to MUC (i.e. 'in the group')?

Inbox is indeed experimental and is not implemented, however we do support XEP-0013: Flexible Offline Message Retrieval (which is in a way similar to Inbox)

@dcokan
Copy link
Author

dcokan commented Apr 15, 2020

Ok, should work for me. Thanks :)

@dcokan dcokan closed this as completed Apr 15, 2020
@dcokan
Copy link
Author

dcokan commented Apr 17, 2020

Hi again, @woj-tek, Indeed if I installed a client and connected to server of tigase I installed on my infrastracture - the number of unread documents appears properly. However I am implementing the application in which chat is just a part and I need to obtain the unread count documents in other place too. Could you help me with pointing the right place i documentation so I can understand how to obtain these numbers?

Thanks, Dawid

@dcokan dcokan reopened this Apr 17, 2020
@woj-tek
Copy link
Contributor

woj-tek commented Apr 17, 2020

This highly depends on the (xmpp) library that you use. Specification defines XML stanza that can be used to obtain it here 2.2 Requesting Number of Messages

@dcokan
Copy link
Author

dcokan commented Apr 28, 2020

Hi again,

I tried it out but the server doesn't respond with the number of messages to read. Instead I can find only empty in response.

I can see at point 2.1 of documentation -> https://xmpp.org/extensions/xep-0013.html#discover that requesting for supported feature should provide in response if xep-0013 is supported

But I don't get that in my response.. I checked for your documentation and added below to my configuration

sess-man {
amp() {
'store-limit' = 200L
}
}

But it didn't help. So is there anything else I should specify ? Thanks in advance

@woj-tek
Copy link
Contributor

woj-tek commented Apr 28, 2020

Have you enabled the plugin in Session Manager?

sess-man {
    'http://jabber.org/protocol/offline' (active: true) {}
}

@dcokan
Copy link
Author

dcokan commented Apr 29, 2020

Worked for me. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants