-
Notifications
You must be signed in to change notification settings - Fork 110
Change the gallery header view to show the message timestamp instead of online status #962
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
Merged
nuno-vieira
merged 3 commits into
develop
from
fix/gallery-header-view-subtitle-with-timestamp
Sep 18, 2025
Merged
Change the gallery header view to show the message timestamp instead of online status #962
nuno-vieira
merged 3 commits into
develop
from
fix/gallery-header-view-subtitle-with-timestamp
Sep 18, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SDK Size
|
Public Interface+ public final class GalleryHeaderViewDateFormatter: DateFormatter, @unchecked Sendable
+
+ override public init()
+
+
+ override public func string(from date: Date)-> String
public struct GalleryView: View
- public init(viewFactory: Factory = DefaultViewFactory.shared,imageAttachments: [ChatMessageImageAttachment],author: ChatUser,isShown: Binding<Bool>,selected: Int)
+ public init(viewFactory: Factory = DefaultViewFactory.shared,imageAttachments: [ChatMessageImageAttachment],author: ChatUser,isShown: Binding<Bool>,selected: Int,message: ChatMessage? = nil)
- public init(viewFactory: Factory = DefaultViewFactory.shared,mediaAttachments: [MediaAttachment],author: ChatUser,isShown: Binding<Bool>,selected: Int)
+ public init(viewFactory: Factory = DefaultViewFactory.shared,mediaAttachments: [MediaAttachment],author: ChatUser,isShown: Binding<Bool>,selected: Int,message: ChatMessage? = nil)
public class Utils
- public var videoPreviewLoader: VideoPreviewLoader
+ public var galleryHeaderViewDateFormatter: DateFormatter
- public var imageLoader: ImageLoading
+ public var videoPreviewLoader: VideoPreviewLoader
- public var imageCDN: ImageCDN
+ public var imageLoader: ImageLoading
- public var imageProcessor: ImageProcessor
+ public var imageCDN: ImageCDN
- public var imageMerger: ImageMerging
+ public var imageProcessor: ImageProcessor
- public var fileCDN: FileCDN
+ public var imageMerger: ImageMerging
- public var channelNamer: ChatChannelNamer
+ public var fileCDN: FileCDN
- public var chatUserNamer: ChatUserNamer
+ public var channelNamer: ChatChannelNamer
- public var channelAvatarsMerger: ChannelAvatarsMerging
+ public var chatUserNamer: ChatUserNamer
- public var messageTypeResolver: MessageTypeResolving
+ public var channelAvatarsMerger: ChannelAvatarsMerging
- public var messageActionsResolver: MessageActionsResolving
+ public var messageTypeResolver: MessageTypeResolving
- public var messagePreviewFormatter: MessagePreviewFormatter
+ public var messageActionsResolver: MessageActionsResolving
- public var commandsConfig: CommandsConfig
+ public var messagePreviewFormatter: MessagePreviewFormatter
- public var channelListConfig: ChannelListConfig
+ public var commandsConfig: CommandsConfig
- public var messageListConfig: MessageListConfig
+ public var channelListConfig: ChannelListConfig
- public var composerConfig: ComposerConfig
+ public var messageListConfig: MessageListConfig
- public var pollsConfig: PollsConfig
+ public var composerConfig: ComposerConfig
- public var shouldSyncChannelControllerOnAppear: (ChatChannelController) -> Bool
+ public var pollsConfig: PollsConfig
- public var snapshotCreator: SnapshotCreator
+ public var shouldSyncChannelControllerOnAppear: (ChatChannelController) -> Bool
- public var messageIdBuilder: MessageIdBuilder
+ public var snapshotCreator: SnapshotCreator
- public var sortReactions: (MessageReactionType, MessageReactionType) -> Bool
+ public var messageIdBuilder: MessageIdBuilder
- public var channelHeaderLoader: ChannelHeaderLoader
+ public var sortReactions: (MessageReactionType, MessageReactionType) -> Bool
- public var videoDurationFormatter: VideoDurationFormatter
+ public var channelHeaderLoader: ChannelHeaderLoader
- public var audioRecordingNameFormatter: AudioRecordingNameFormatter
+ public var videoDurationFormatter: VideoDurationFormatter
- public var audioPlayerBuilder: () -> AudioPlaying
+ public var audioRecordingNameFormatter: AudioRecordingNameFormatter
- public var audioPlayer: AudioPlaying
+ public var audioPlayerBuilder: () -> AudioPlaying
- public var audioRecorderBuilder: () -> AudioRecording
+ public var audioPlayer: AudioPlaying
- public var audioRecorder: AudioRecording
+ public var audioRecorderBuilder: () -> AudioRecording
- public lazy var audioSessionFeedbackGenerator: AudioSessionFeedbackGenerator
+ public var audioRecorder: AudioRecording
- public var originalTranslationsStore
+ public lazy var audioSessionFeedbackGenerator: AudioSessionFeedbackGenerator
- public static var defaultSortReactions: (MessageReactionType, MessageReactionType) -> Bool
+ public var originalTranslationsStore
-
+ public static var defaultSortReactions: (MessageReactionType, MessageReactionType) -> Bool
-
+
- public init(dateFormatter: DateFormatter = .makeDefault(),messageRelativeDateFormatter: DateFormatter = MessageRelativeDateFormatter(),videoPreviewLoader: VideoPreviewLoader = DefaultVideoPreviewLoader(),imageLoader: ImageLoading = NukeImageLoader(),imageCDN: ImageCDN = StreamImageCDN(),imageProcessor: ImageProcessor = NukeImageProcessor(),imageMerger: ImageMerging = DefaultImageMerger(),fileCDN: FileCDN = DefaultFileCDN(),channelAvatarsMerger: ChannelAvatarsMerging = ChannelAvatarsMerger(),messageTypeResolver: MessageTypeResolving = MessageTypeResolver(),messageActionResolver: MessageActionsResolving = MessageActionsResolver(),messagePreviewFormatter: MessagePreviewFormatter = MessagePreviewFormatter(),commandsConfig: CommandsConfig = DefaultCommandsConfig(),channelListConfig: ChannelListConfig = ChannelListConfig(),messageListConfig: MessageListConfig = MessageListConfig(),composerConfig: ComposerConfig = ComposerConfig(),pollsConfig: PollsConfig = PollsConfig(),channelNamer: @escaping ChatChannelNamer = DefaultChatChannelNamer(),chatUserNamer: ChatUserNamer = DefaultChatUserNamer(),snapshotCreator: SnapshotCreator = DefaultSnapshotCreator(),messageIdBuilder: MessageIdBuilder = DefaultMessageIdBuilder(),channelHeaderLoader: ChannelHeaderLoader = ChannelHeaderLoader(),videoDurationFormatter: VideoDurationFormatter = DefaultVideoDurationFormatter(),audioRecordingNameFormatter: AudioRecordingNameFormatter = DefaultAudioRecordingNameFormatter(),sortReactions: @escaping (MessageReactionType, MessageReactionType) -> Bool = Utils.defaultSortReactions,shouldSyncChannelControllerOnAppear: @escaping (ChatChannelController) -> Bool = { _ in true })
+
+ public init(dateFormatter: DateFormatter = .makeDefault(),messageRelativeDateFormatter: DateFormatter = MessageRelativeDateFormatter(),galleryHeaderViewDateFormatter: DateFormatter = GalleryHeaderViewDateFormatter(),videoPreviewLoader: VideoPreviewLoader = DefaultVideoPreviewLoader(),imageLoader: ImageLoading = NukeImageLoader(),imageCDN: ImageCDN = StreamImageCDN(),imageProcessor: ImageProcessor = NukeImageProcessor(),imageMerger: ImageMerging = DefaultImageMerger(),fileCDN: FileCDN = DefaultFileCDN(),channelAvatarsMerger: ChannelAvatarsMerging = ChannelAvatarsMerger(),messageTypeResolver: MessageTypeResolving = MessageTypeResolver(),messageActionResolver: MessageActionsResolving = MessageActionsResolver(),messagePreviewFormatter: MessagePreviewFormatter = MessagePreviewFormatter(),commandsConfig: CommandsConfig = DefaultCommandsConfig(),channelListConfig: ChannelListConfig = ChannelListConfig(),messageListConfig: MessageListConfig = MessageListConfig(),composerConfig: ComposerConfig = ComposerConfig(),pollsConfig: PollsConfig = PollsConfig(),channelNamer: @escaping ChatChannelNamer = DefaultChatChannelNamer(),chatUserNamer: ChatUserNamer = DefaultChatUserNamer(),snapshotCreator: SnapshotCreator = DefaultSnapshotCreator(),messageIdBuilder: MessageIdBuilder = DefaultMessageIdBuilder(),channelHeaderLoader: ChannelHeaderLoader = ChannelHeaderLoader(),videoDurationFormatter: VideoDurationFormatter = DefaultVideoDurationFormatter(),audioRecordingNameFormatter: AudioRecordingNameFormatter = DefaultAudioRecordingNameFormatter(),sortReactions: @escaping (MessageReactionType, MessageReactionType) -> Bool = Utils.defaultSortReactions,shouldSyncChannelControllerOnAppear: @escaping (ChatChannelController) -> Bool = { _ in true }) |
6 tasks
martinmitrevski
approved these changes
Sep 18, 2025
Co-authored-by: Stream Bot <[email protected]>
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔗 Issue Links
https://linear.app/stream/issue/IOS-1059/deputy-replace-a-user-status-with-a-message-date-in-the-galary
🎯 Goal
Change the gallery header view to show the message timestamp instead of online status.
This is to make it aligned with the other SDKs.
🧪 Manual Testing Notes
☑️ Contributor Checklist
docs-content
repo