Skip to content

Conversation

@renefloor
Copy link
Contributor

@renefloor renefloor commented Apr 10, 2025

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

This adds channel pinning and archiving.
When doing an api call to pin/archive or unpin/unarchive the membership object on the channel is updated. In the UI we have to sort again with the pinned status in mind, so we cannot easily just put channels at the top anymore when they are changed.

Fixes FLU-20
Fixes FLU-21

renefloor added 10 commits April 2, 2025 12:08
…hive-channel

# Conflicts:
#	packages/stream_chat/lib/src/client/channel.dart
#	packages/stream_chat_flutter_core/lib/src/stream_channel_list_event_handler.dart
# Conflicts:
#	packages/stream_chat/lib/src/core/api/requests.dart
#	packages/stream_chat/lib/src/core/models/channel_state.dart
#	packages/stream_chat_persistence/lib/src/dao/channel_query_dao.dart
#	packages/stream_chat_persistence/lib/src/stream_chat_persistence_client.dart
@github-actions
Copy link

github-actions bot commented Apr 10, 2025

⚠️ Database Entity Files Modified

The following database entity files have been modified in this PR:

packages/stream_chat_persistence/lib/src/entity/members.dart

📝 Remember to:

  1. Update database version in db/drift_chat_database.dart.
  2. Update entity schema tests if necessary.

Note: This comment is automatically generated by the CI workflow.

@renefloor renefloor force-pushed the feature/pin-and-archive-channel branch from dcbdf9b to 14e5e80 Compare April 10, 2025 12:39
@renefloor renefloor force-pushed the feature/pin-and-archive-channel branch from 14e5e80 to 84cfcb2 Compare April 10, 2025 12:55
@renefloor renefloor force-pushed the feature/pin-and-archive-channel branch from 8b48ac4 to 08a1a1b Compare April 11, 2025 07:55
@renefloor renefloor force-pushed the feature/pin-and-archive-channel branch from 8515558 to 0cb0bb1 Compare April 11, 2025 08:25
@renefloor renefloor force-pushed the feature/pin-and-archive-channel branch from 0cb0bb1 to 1c3ce58 Compare April 11, 2025 08:27
@codecov
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 84.81013% with 12 lines in your changes missing coverage. Please review.

Project coverage is 62.23%. Comparing base (d8f8f66) to head (f34a1bf).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
packages/stream_chat/lib/src/client/channel.dart 88.23% 4 Missing ⚠️
...ore/lib/src/stream_channel_list_event_handler.dart 0.00% 4 Missing ⚠️
...ckages/stream_chat/lib/src/core/models/member.dart 50.00% 2 Missing ⚠️
...r_core/lib/src/stream_channel_list_controller.dart 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2204      +/-   ##
==========================================
+ Coverage   62.15%   62.23%   +0.07%     
==========================================
  Files         392      392              
  Lines       24612    24689      +77     
==========================================
+ Hits        15298    15364      +66     
- Misses       9314     9325      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xsahil03x xsahil03x merged commit bf400a1 into master Apr 15, 2025
15 checks passed
@xsahil03x xsahil03x deleted the feature/pin-and-archive-channel branch April 15, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants