Skip to content

Collapse group chat join/leave notifications #668

@f3dm76

Description

@f3dm76

What are you trying to achieve?

I want to group or at least hide "NAME joined the group" system messages, because there are too many.

If possible, how can you achieve this currently?

I tried using

func makeSystemMessageView(message: ChatMessage) -> some View {
   EmptyView()
}

But there is still a padding forced on them:
Simulator Screenshot - iPhone 16 Pro Max - 2024-11-27 at 12 39 10
Simulator Screenshot - iPhone 16 Pro Max - 2024-11-27 at 12 37 14

What would be the better way?

Could you group them on your end, like this?

Bobak & 20 others joined (if you tap it then you expand it) -> when you refresh the view it's minimized (whatever is easiest way to do it)

two or more collapse (example for join):
2 = bobak & eric joined
3 = bobak, eric, and oyku joined
4+ = bobak & 3 others joined

two or more collapse (example for joined & left):
2 = bobak joined & eric left
3 = bobak joined
4+ = bobak & 3 others joined
ana joined & bobak left

GetStream Environment

GetStream Chat version: 4.67.0
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version: 18.0
Swift version: 6.0
Xcode version: 16.0
Device: sim iPhone 16 pro max

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions