commit 5499e6f03364d00283573da43e487e2f525fc7de
parent f6a3ce6891bc1106f0943a876e543dd310e5cd9d
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 25 May 2023 20:18:41 -0700
new users default to stream version of chat
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkg/database/tableUsers.go b/pkg/database/tableUsers.go
@@ -580,6 +580,7 @@ func (d *DkfDB) createUser(username, password, repassword, gpgPublicKey string,
newUser.LastSeenPublic = true
newUser.CollectMetadata = false
newUser.RegistrationDuration = registrationDuration
+ newUser.UseStream = true
newUser.SignupMetadata = signupInfoEnc
if !verified {
token := utils.GenerateToken32()
diff --git a/pkg/web/handlers/chat.go b/pkg/web/handlers/chat.go
@@ -62,7 +62,7 @@ func chatHandler(c echo.Context, redRoom, stream bool) error {
if authUser != nil {
managers.ActiveUsers.UpdateUserInRoom(room, managers.NewUserInfo(*authUser, nil))
-
+
// We display tutorial on official or public rooms
data.DisplayTutorial = (room.IsOfficialRoom() || (room.IsListed && !room.IsProtected())) && !authUser.TutorialCompleted()