Return messages_sent`from channel-preview
Some checks failed
Build Docker and Deploy / Build Docker Container (push) Successful in 1m22s
Build Docker and Deploy / Run Unit-Tests (push) Failing after 9m38s
Build Docker and Deploy / Deploy to Server (push) Has been skipped

This commit is contained in:
Mike Schwörer 2025-04-12 20:30:19 +02:00
parent e6709cd4af
commit 9c53cc52e9
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -23,6 +23,7 @@ type ChannelPreview struct {
InternalName string `json:"internal_name"`
DisplayName string `json:"display_name"`
DescriptionName *string `json:"description_name"`
MessagesSent int `json:"messages_sent"`
}
func (c Channel) WithSubscription(sub *Subscription) ChannelWithSubscription {
@ -39,5 +40,6 @@ func (c Channel) Preview() ChannelPreview {
InternalName: c.InternalName,
DisplayName: c.DisplayName,
DescriptionName: c.DescriptionName,
MessagesSent: c.MessagesSent,
}
}