Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Update the user object name change time when changing name. Closes #1277

Gabe Kangas081ce44a0d52
diff --git a/core/chat/events.go b/core/chat/events.go
index 43372d9c01..6b25bc3fb2 100644
--- a/core/chat/events.go
+++ b/core/chat/events.go
@@ -46,7 +46,9 @@ func (s *ChatServer) userNameChanged(eventData chatClientEvent) {
user.ChangeUsername(eventData.client.User.Id, receivedEvent.NewName)
// Update the connected clients associated user with the new name
+ now := time.Now()
eventData.client.User = savedUser
+ eventData.client.User.NameChangedAt = &now
// Send chat event letting everyone about about the name change
savedUser.DisplayName = receivedEvent.NewName