-
Notifications
You must be signed in to change notification settings - Fork 452
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
Error when rendering system messages about started calls in the Files sidebar #4572
Comments
is this still happening after all the work we did in files sidebar ? |
Still happening on master. There are even more undefined property / watcher error messages now, for:
I'll have a look |
The thing that triggers the message is whenever we replace the token on this line https://github.com/nextcloud/spreed/blob/bugfix/4683/group-display-names-in-admin-settings/src/store/tokenStore.js#L56. |
Out of curiosity I tried to swap the assignments but not it's the My guess is that there's some old vue that is still trying to render the messages before the moment we got a chance to run fetch. Maybe we need to clear the old message list or even destroy the view upon leaving. Let's see. |
It appears that CallView, MessagesList and Message vues are still mounted with the token for which the conversation does not exist yet in the store. Adding a loading flag to not render CallView until the conversation is fetched seems to prevent the issue. I'll try to also add a spinner there as our usual "chat loading placeholder" would not fit well in that space. |
wait... now I get it: the "messages" in the store is still populated while the "conversations" bit is empty. so upon leaving the conversation we should also purge the messages list |
How to test
Expected result
The You started a call message is shown.
Actual result
The You started a call message is shown. In the browser console there are errors like
Error in getter for watcher "showJoinCallButton": "TypeError: Cannot read property 'hasCall' of undefined"
.The text was updated successfully, but these errors were encountered: