Added channel name to chat view
This commit is contained in:
parent
787078f720
commit
bba51dfa18
3
chat.go
3
chat.go
|
@ -315,6 +315,7 @@ func startChatStream(ctx context.Context, event chan *sse.Event, handle func(cv
|
||||||
|
|
||||||
type ChatView struct {
|
type ChatView struct {
|
||||||
Badges []string
|
Badges []string
|
||||||
|
ChannelName string
|
||||||
Color string
|
Color string
|
||||||
ImageUrl string
|
ImageUrl string
|
||||||
Init bool
|
Init bool
|
||||||
|
@ -397,7 +398,7 @@ func parseMessages(eventType string, messages []ChatEventMessage, users map[stri
|
||||||
}
|
}
|
||||||
|
|
||||||
view.ImageUrl = channel.Image1
|
view.ImageUrl = channel.Image1
|
||||||
view.Username = channel.Username
|
view.ChannelName = channel.Username
|
||||||
}
|
}
|
||||||
|
|
||||||
views = append(views, view)
|
views = append(views, view)
|
||||||
|
|
Loading…
Reference in a new issue