Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Fixed bugs in instance channel fetching and display. #6394

Merged
merged 1 commit into from
Jun 11, 2022

Conversation

barankyle
Copy link
Member

@barankyle barankyle commented Jun 10, 2022

Summary

Sometimes, the client recognizes a connection to an instance server has been made
before the initial 'joined' message has been created, and so when the instance channel
is fetched, there are no messages. Added a check for number of messages that triggers
a refetch in 500 ms until there are messages to display.

Added some checks to InstanceChat/index.tsx that messages[index -1] exists before trying
to call isLeftOrJoinText on that; the above bug brought to light a bug here where that
call would throw an error since there was no prior message to call on.

References

closes #insert number here

Checklist

  • If this PR is still a WIP, convert to a draft
  • When this PR is ready, mark it as "Ready for review"
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewers

QA Steps

List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.

@barankyle barankyle linked an issue Jun 10, 2022 that may be closed by this pull request
@barankyle barankyle marked this pull request as ready for review June 10, 2022 19:20
Sometimes, the client recognizes a connection to an instance server has been made
before the initial 'joined' message has been created, and so when the instance channel
is fetched, there are no messages. Added a check for number of messages that triggers
a refetch in 500 ms until there are messages to display.

Added some checks to InstanceChat/index.tsx that messages[index -1] exists before trying
to call isLeftOrJoinText on that; the above bug brought to light a bug here where that
call would throw an error since there was no prior message to call on.
@HexaField HexaField merged commit 4950e2d into dev Jun 11, 2022
@HexaField HexaField deleted the channel-message-fixes branch June 11, 2022 01:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Chat error and removes UI
2 participants