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(' ')} /> <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='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} /> <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(' ')} /> <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> </SidebarSectionTitle>
<SidebarSectionItem title='Home' icon='home' to='/home' count={homeItemsQueueCount} /> <SidebarSectionItem title='Home' icon='home' to='/home' count={homeItemsQueueCount} />
<SidebarSectionItem title='Notifications' icon='notifications' to='/notifications' count={notificationCount} /> <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='Groups' icon='group' to='/groups' />
<SidebarSectionItem title='Lists' icon='list' to='/lists' /> <SidebarSectionItem title='Lists' icon='list' to='/lists' />
<SidebarSectionItem title='Explore' icon='explore' to='/explore' /> <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' 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='/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' 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/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 }} /> <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/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/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='/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' }} /> <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 :link_blocks, only: [:index, :new, :create, :destroy]
resources :statuses, only: [:index, :show, :create, :update, :destroy] resources :statuses, only: [:index, :show, :create, :update, :destroy]
resources :preview_cards, only: [:index, :create, :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 :action_logs, only: [:index]
resources :warning_presets, except: [:new] resources :warning_presets, except: [:new]
resource :settings, only: [:edit, :update] resource :settings, only: [:edit, :update]
@ -150,8 +150,8 @@ Rails.application.routes.draw do
resources :followers, only: [:index] resources :followers, only: [:index]
resources :follows, only: [:index] resources :follows, only: [:index]
resources :joined_groups, only: [:index] resources :joined_groups, only: [:index]
resources :chat_conversation_accounts, only: [:index] # resources :chat_conversation_accounts, only: [:index]
resources :chat_messages, only: [:index, :show, :create, :update, :destroy] # resources :chat_messages, only: [:index, :show, :create, :update, :destroy]
resource :confirmation, only: [:create] do resource :confirmation, only: [:create] do
collection do collection do
@ -228,49 +228,49 @@ Rails.application.routes.draw do
resource :explore, only: :show, controller: :explore resource :explore, only: :show, controller: :explore
end end
namespace :chat_conversation_accounts do # namespace :chat_conversation_accounts do
# #
end # end
resources :chat_conversation_accounts, only: :show do # resources :chat_conversation_accounts, only: :show do
member do # member do
post :messenger_block_relationships # post :messenger_block_relationships
post :block_messenger # post :block_messenger
post :unblock_messenger # post :unblock_messenger
post :mute_chat_conversation # post :mute_chat_conversation
post :unmute_chat_conversation # post :unmute_chat_conversation
get :search # get :search
end # end
end # end
namespace :chat_conversations do # namespace :chat_conversations do
resources :messages, only: :show do # resources :messages, only: :show do
member do # member do
delete :destroy_all # delete :destroy_all
end # end
end # end
resources :approved_conversations, only: :index do # resources :approved_conversations, only: :index do
collection do # collection do
get :unread_count # get :unread_count
end # end
end # end
resources :requested_conversations, only: :index do # resources :requested_conversations, only: :index do
collection do # collection do
get :count # get :count
end # end
end # end
resources :blocked_chat_accounts, only: :index # resources :blocked_chat_accounts, only: :index
resources :muted_conversations, only: :index # resources :muted_conversations, only: :index
end # end
resources :chat_conversation, only: [:show, :create] do # resources :chat_conversation, only: [:show, :create] do
member do # member do
post :mark_chat_conversation_approved # post :mark_chat_conversation_approved
post :mark_chat_conversation_read # post :mark_chat_conversation_read
post :mark_chat_conversation_hidden # post :mark_chat_conversation_hidden
post :set_expiration_policy # post :set_expiration_policy
end # end
end # end
resources :links, only: :show resources :links, only: :show
resources :hashtags, only: :show resources :hashtags, only: :show
@ -281,7 +281,7 @@ Rails.application.routes.draw do
resources :scheduled_statuses, only: [:index, :show, :update, :destroy] resources :scheduled_statuses, only: [:index, :show, :update, :destroy]
resources :preferences, only: [:index] resources :preferences, only: [:index]
resources :group_categories, only: [:index] resources :group_categories, only: [:index]
resources :chat_messages, only: [:create, :destroy] # resources :chat_messages, only: [:create, :destroy]
resources :promotions, only: [:index] resources :promotions, only: [:index]
resources :follows, only: [:create] resources :follows, only: [:create]
resources :media, only: [:create, :update] resources :media, only: [:create, :update]