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

get unseen mail api endpoint #153

Open
QuentinEcollectivites opened this issue Feb 26, 2024 · 2 comments
Open

get unseen mail api endpoint #153

QuentinEcollectivites opened this issue Feb 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@QuentinEcollectivites
Copy link

Hello,
This is possible to get unseen mail like notification ? I didn't see on documentation.
Thx !

@luke- luke- added the enhancement New feature or request label Feb 26, 2024
@QuentinEcollectivites
Copy link
Author

QuentinEcollectivites commented Apr 18, 2024

i've done.
Add this to "protected/modules/mail/helpers/RestDefinitions.php"
image

With this, you've the unread mmessage from your humhub instance

@luke-
Copy link
Contributor

luke- commented Apr 19, 2024

A separate endpoint would probably be better here.

So you don't necessarily need at least one message to get the count. :-)

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

No branches or pull requests

2 participants