Removing Chat/Dms for now

• Removing:
- Chat/Dms for now
This commit is contained in:
mgabdev 2021-01-25 12:23:17 -05:00
parent 01d736c6b2
commit 081f59c872
4 changed files with 47 additions and 45 deletions

View File

@ -175,7 +175,6 @@ class DefaultNavigationBar extends ImmutablePureComponent {
<div className={[_s.d, _s.h20PX, _s.w1PX, _s.mr10, _s.ml10, _s.bgNavigationBlend].join(' ')} />
<NavigationBarButton attrTitle='Notifications' icon='notifications' to='/notifications' count={notificationCount} />
<NavigationBarButton attrTitle='Chats' icon='chat' to='/messages' count={unreadChatsCount} />
<NavigationBarButton attrTitle='Dark/Muted/Light/White Mode' icon='light-bulb' onClick={this.handleOnClickLightBulb} />
<div className={[_s.d, _s.h20PX, _s.w1PX, _s.mr10, _s.ml10, _s.bgNavigationBlend].join(' ')} />

View File

@ -85,7 +85,6 @@ class DefaultSidebar extends ImmutablePureComponent {
</SidebarSectionTitle>
<SidebarSectionItem title='Home' icon='home' to='/home' count={homeItemsQueueCount} />
<SidebarSectionItem title='Notifications' icon='notifications' to='/notifications' count={notificationCount} />
<SidebarSectionItem title='Chats' icon='chat' to='/messages' count={unreadChatsCount} />
<SidebarSectionItem title='Groups' icon='group' to='/groups' />
<SidebarSectionItem title='Lists' icon='list' to='/lists' />
<SidebarSectionItem title='Explore' icon='explore' to='/explore' />

View File

@ -218,6 +218,8 @@ class SwitchingArea extends React.PureComponent {
<WrappedRoute path='/news' exact publicRoute page={NewsPage} component={News} content={children} componentParams={{ title: 'News' }} />
<WrappedRoute path='/news/view/:trendsRSSId' page={NewsPage} component={NewsView} content={children} componentParams={{ title: 'News RSS Feed' }} />
{
/*
<WrappedRoute path='/messages' exact page={MessagesPage} component={Messages} content={children} componentParams={{ source: 'approved' }} />
<WrappedRoute path='/messages/new' exact page={BasicPage} component={ChatConversationCreate} content={children} componentParams={{ title: 'New Message' }} />
<WrappedRoute path='/messages/settings' exact page={MessagesPage} component={MessagesSettings} content={children} componentParams={{ isSettings: true }} />
@ -225,6 +227,8 @@ class SwitchingArea extends React.PureComponent {
<WrappedRoute path='/messages/blocks' exact page={MessagesPage} component={ChatConversationBlockedAccounts} content={children} componentParams={{ isSettings: true }} />
<WrappedRoute path='/messages/muted_conversations' exact page={MessagesPage} component={ChatConversationMutes} content={children} componentParams={{ isSettings: true }} />
<WrappedRoute path='/messages/:chatConversationId' exact page={MessagesPage} component={Messages} content={children} componentParams={{ source: 'approved' }} />
*/
}
<WrappedRoute path='/timeline/pro' exact page={ProPage} component={ProTimeline} content={children} componentParams={{ title: 'Pro Feed' }} />

View File

@ -100,7 +100,7 @@ Rails.application.routes.draw do
resources :link_blocks, only: [:index, :new, :create, :destroy]
resources :statuses, only: [:index, :show, :create, :update, :destroy]
resources :preview_cards, only: [:index, :create, :destroy]
resources :chat_messages, only: [:index, :destroy]
# resources :chat_messages, only: [:index, :destroy]
resources :action_logs, only: [:index]
resources :warning_presets, except: [:new]
resource :settings, only: [:edit, :update]
@ -150,8 +150,8 @@ Rails.application.routes.draw do
resources :followers, only: [:index]
resources :follows, only: [:index]
resources :joined_groups, only: [:index]
resources :chat_conversation_accounts, only: [:index]
resources :chat_messages, only: [:index, :show, :create, :update, :destroy]
# resources :chat_conversation_accounts, only: [:index]
# resources :chat_messages, only: [:index, :show, :create, :update, :destroy]
resource :confirmation, only: [:create] do
collection do
@ -228,49 +228,49 @@ Rails.application.routes.draw do
resource :explore, only: :show, controller: :explore
end
namespace :chat_conversation_accounts do
# namespace :chat_conversation_accounts do
#
end
# end
resources :chat_conversation_accounts, only: :show do
member do
post :messenger_block_relationships
post :block_messenger
post :unblock_messenger
post :mute_chat_conversation
post :unmute_chat_conversation
get :search
end
end
# resources :chat_conversation_accounts, only: :show do
# member do
# post :messenger_block_relationships
# post :block_messenger
# post :unblock_messenger
# post :mute_chat_conversation
# post :unmute_chat_conversation
# get :search
# end
# end
namespace :chat_conversations do
resources :messages, only: :show do
member do
delete :destroy_all
end
end
resources :approved_conversations, only: :index do
collection do
get :unread_count
end
end
resources :requested_conversations, only: :index do
collection do
get :count
end
end
resources :blocked_chat_accounts, only: :index
resources :muted_conversations, only: :index
end
# namespace :chat_conversations do
# resources :messages, only: :show do
# member do
# delete :destroy_all
# end
# end
# resources :approved_conversations, only: :index do
# collection do
# get :unread_count
# end
# end
# resources :requested_conversations, only: :index do
# collection do
# get :count
# end
# end
# resources :blocked_chat_accounts, only: :index
# resources :muted_conversations, only: :index
# end
resources :chat_conversation, only: [:show, :create] do
member do
post :mark_chat_conversation_approved
post :mark_chat_conversation_read
post :mark_chat_conversation_hidden
post :set_expiration_policy
end
end
# resources :chat_conversation, only: [:show, :create] do
# member do
# post :mark_chat_conversation_approved
# post :mark_chat_conversation_read
# post :mark_chat_conversation_hidden
# post :set_expiration_policy
# end
# end
resources :links, only: :show
resources :hashtags, only: :show
@ -281,7 +281,7 @@ Rails.application.routes.draw do
resources :scheduled_statuses, only: [:index, :show, :update, :destroy]
resources :preferences, only: [:index]
resources :group_categories, only: [:index]
resources :chat_messages, only: [:create, :destroy]
# resources :chat_messages, only: [:create, :destroy]
resources :promotions, only: [:index]
resources :follows, only: [:create]
resources :media, only: [:create, :update]