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 channel.pinnedMessages with missing messages #3244

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

nuno-vieira
Copy link
Member

@nuno-vieira nuno-vieira commented Jun 11, 2024

🔗 Issue Links

Resolves https://github.com/GetStream/ios-issues-tracking/issues/862

🎯 Goal

Fixes channel.pinnedMessages not containing the whole data from the server.

🛠 Implementation

The logic was incorrect. We were removing the pinned messages from channel.pinnedMessages if they already existed in the array. This is wrong. It should only be removed if they are not pinned anymore.

🧪 Manual Testing Notes

Not required. Covered by unit tests.

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero ⚠️ policy (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (docusaurus, tutorial, CMS)

@nuno-vieira nuno-vieira added 🐞 Bug An issue or PR related to a bug 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK labels Jun 11, 2024
@nuno-vieira nuno-vieira requested a review from a team as a code owner June 11, 2024 15:41
Copy link
Contributor

@laevandus laevandus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@nuno-vieira nuno-vieira enabled auto-merge (squash) June 12, 2024 11:07
Copy link

sonarcloud bot commented Jun 13, 2024

@nuno-vieira nuno-vieira merged commit 846f754 into develop Jun 13, 2024
13 of 15 checks passed
@nuno-vieira nuno-vieira deleted the fix/channel-pinned-messages-with-missing-data branch June 13, 2024 16:12
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug An issue or PR related to a bug 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants