diff --git a/app/controllers/chat_channels_controller.rb b/app/controllers/chat_channels_controller.rb index de97dff9e..98dd56a33 100644 --- a/app/controllers/chat_channels_controller.rb +++ b/app/controllers/chat_channels_controller.rb @@ -92,6 +92,7 @@ class ChatChannelsController < ApplicationController @chat_channels_memberships = current_user. chat_channel_memberships.includes(:chat_channel). where("has_unopened_messages = ? OR status = ?", true, "pending"). + where(show_global_badge_notification: true). order("chat_channel_memberships.updated_at DESC") else @chat_channels_memberships = [] diff --git a/app/javascript/chat/compose.jsx b/app/javascript/chat/compose.jsx index f96258696..1f0ec0c83 100644 --- a/app/javascript/chat/compose.jsx +++ b/app/javascript/chat/compose.jsx @@ -22,6 +22,7 @@ export default class Chat extends Component { id="messageform" placeholder="Message goes here" onKeyDown={handleKeyDown} + maxLength="1000" />