Skip to content

Node.js based forum software built for the modern web

fix: dont update teaser for public chats

Barış Soner Uşaklı149d649a6ced
diff --git a/public/src/client/chats.js b/public/src/client/chats.js
index 338ba78c55..a4a4ed7288 100644
--- a/public/src/client/chats.js
+++ b/public/src/client/chats.js
@@ -664,7 +664,7 @@ define('forum/chats', [
};
Chats.updateTeaser = async function (roomId, teaser) {
- if (!ajaxify.data.template.chats || !app.user.userslug) {
+ if (!ajaxify.data.template.chats || ajaxify.data.public || !app.user.userslug) {
return;
}