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
Newly created Nextcloud users do not show up in Chat list #565
Comments
Just as context: The basic XMPP concept is for the users to manage the roster list and adds/deletes themselves. There are plugins for many external XMPP servers to share an admin-provided roster among multiple users. The internal XMPP server should maintain a global group roster of all users. Apparently, it doesn't. @LEDfan Can you look into this once your exams are over? |
This is probably because JSXC caches the roster in the localStorage and doesn't asks for it every time you open a Nextcloud page. @sualko is there a way in XMPP to inform a change of the roster, or to invalidate the cache? I think there are some ways in Nextcloud to be notified of new, changed and deleted users so then the server can send the new roster. |
Year, there are roster pushes. Btw. nice that you are back 😜 |
@Nils160988 @poVoq this can be tested now (see nextcloud/jsxc.nextcloud#33). The changes are too big to manually apply so here is a test version. It would be great to get some feedback on this! |
Hi @LEDfan What I saw:
So that's all great! My issue persists however: only admin user can chat with all the other non-admin users. The non-admin users can't chat with each other. Well they can type in messages but the receiving user won't get these messages. I was hoping that was this issue here. Just wanted to let you know. |
Thanks @Schmuuu for the feedback! About your other issue that only admin users can chat with non-admin users, I'm not able to reproduce it. Can you open a new issue for this and provide the browser and server (nextcloud.log) logs? Also are you using multiple domains to access your server, or do your non-admin users have any special characters in their username? |
Thanks @LEDfan for the test-version! But one small issue persists: After installing the new version, the chat contacts are still not visible for all existing users. Updates only occur for new users. An easy workaround (at least if you have not too many users) is to deactivate all users and activate them again. I did not yet look into the issue whether all messages are properly sent. |
@Nils160988 I added a command to refresh the rosters of all users. You can run it by executing |
On executing the command, it gives the error "There are no commands defined in the "ojsxc" namespace." Additionally, it might be nice, if this command is done automatically on installation of the app, because some people might run nextcloud without command line access. |
Yeah I actually provided the old archive... About running the command at installation: that's actually a good idea, but note that for a fresh installation of the app it shouldn't be necessary. Since then users don't have a local copy of the roster and thus the client part fetches the roster from the backend. But for when re-enabling the app after it was enabled once it is needed. |
Now it works, after executing the command, all contacts are shown. |
Hi @Nils160988 Sorry, I haven't found the time yet. So no unfortunately. |
Update roster when creating, deleting and changing users fix jsxc/jsxc#565
This is a copy from https://help.nextcloud.com/t/javascript-xmpp-chat-missing-contacts/14408, so, as suggested there, I post it here.
Nextcloud version: 12.0.0
Operating system and version: Ubuntu 16.04
Apache or nginx version: 2.4.18
PHP version: 7.0.18
Is this the first time you've seen this error?: yes
Can you reliably replicate it? (If so, please outline steps):
The issue you are facing:
Other users, which are created afterwards, are not shown in the chat window ( JavaScript XMPP Chat with internal server).
So, the first user (admin) sees no other contacts, second user only sees admin and so on.
I tried reinstalling the app, no changes.
I tried removing the app, manually dropping the tables oc_ojsxc_presence and oc_ojsxc_stanzas in the database (I thought, they might be some unwanted relict from the app?) and reinstalling, no changes.
Any suggestions?
Is it due to the internal server of the app, which is marked as experimental, did I misconfigured something or might there be a bud somewhere?
The output of your Nextcloud log in Admin > Logging: no relevant log messages
The output of your config.php file in
/path/to/nextcloud
(make sure you remove any identifiable information!):The text was updated successfully, but these errors were encountered: