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

fix(messages): minor render enhancements #11727

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Mar 5, 2024

☑️ Resolves

  • assign viewId on Options API initialising: chatIdentifier is no longer updated at mounted() - no cancelled requests
  • don't check system messages for parents:
    • weird, but for federated conversations system conversations getContext at the moment response is processed, doesn't contain message parent - false check - system message is rendered as-is

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
image image

🚧 Tasks

  • ...

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • ⛑️ Tests are included or not possible

@Antreesy
Copy link
Contributor Author

Antreesy commented Mar 5, 2024

cc @nickvergessen
please take a look at system messages from API side. Response in devtools has 'parent' fields, but some intermediate result is handled by store.
Also happens only locally, not reproducable on pre-production servers

@nickvergessen
Copy link
Member

chatIdentifier is no longer updated at mounted()

This was required for some things when switching from chat UI to call UI. Can not remember the details though

@Antreesy
Copy link
Contributor Author

Antreesy commented Mar 6, 2024

Can not remember the details though

Was introduced here: 7503ecf
By description, doesn't seem to happen anymore, init it earlier just saves us one re-render and request. Tested with switching between call - chat views

- assign `viewId` on Options API initialising: chatIdentifier is no longer updated at `mounted()` - no cancelled requests
- add a safe check for system messages without parents
  - doesn't happen usually, but for federated conversations system conversations `getContext` response is processed as if there are no message parents - system message is rendered in the list

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy Antreesy force-pushed the fix/noid/message-list-render branch from 4fe60fe to cbc649d Compare March 6, 2024 10:27
@nickvergessen nickvergessen merged commit bbf2e6b into main Mar 7, 2024
45 checks passed
@nickvergessen nickvergessen deleted the fix/noid/message-list-render branch March 7, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants