PLT-6215 Major post list refactor (#6501)
* Major post list refactor * Fix post and thread deletion * Fix preferences not selecting correctly * Fix military time displaying * Fix UP key for editing posts * Fix ESLint error * Various fixes and updates per feedback * Fix for permalink view * Revert to old scrolling method and various fixes * Add floating timestamp, new message indicator, scroll arrows * Update post loading for focus mode and add visibility limit * Fix pinning posts and a react warning * Add loading UI updates from Asaad * Fix refreshing loop * Temporarily bump post visibility limit * Update infinite scrolling * Remove infinite scrolling
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0231e95f1c
Коммит
ab67f6e257
@@ -13,7 +13,6 @@ import UserStore from 'stores/user_store.jsx';
|
||||
import PreferenceStore from 'stores/preference_store.jsx';
|
||||
import ChannelStore from 'stores/channel_store.jsx';
|
||||
import PostStore from 'stores/post_store.jsx';
|
||||
import * as GlobalActions from 'actions/global_actions.jsx';
|
||||
import {startPeriodicStatusUpdates, stopPeriodicStatusUpdates} from 'actions/status_actions.jsx';
|
||||
import {startPeriodicSync, stopPeriodicSync} from 'actions/websocket_actions.jsx';
|
||||
import {loadProfilesForSidebar} from 'actions/user_actions.jsx';
|
||||
@@ -23,13 +22,16 @@ const TutorialSteps = Constants.TutorialSteps;
|
||||
const Preferences = Constants.Preferences;
|
||||
|
||||
import AnnouncementBar from 'components/announcement_bar';
|
||||
import SidebarRight from 'components/sidebar_right.jsx';
|
||||
import SidebarRight from 'components/sidebar_right';
|
||||
import SidebarRightMenu from 'components/sidebar_right_menu.jsx';
|
||||
import Navbar from 'components/navbar.jsx';
|
||||
import WebrtcSidebar from 'components/webrtc/components/webrtc_sidebar.jsx';
|
||||
|
||||
import WebrtcNotification from 'components/webrtc/components/webrtc_notification.jsx';
|
||||
|
||||
import store from 'stores/redux_store.jsx';
|
||||
import {getPost} from 'mattermost-redux/selectors/entities/posts';
|
||||
|
||||
// Modals
|
||||
import GetPostLinkModal from 'components/get_post_link_modal.jsx';
|
||||
import GetPublicLinkModal from 'components/get_public_link_modal.jsx';
|
||||
@@ -111,9 +113,6 @@ export default class NeedsTeam extends React.Component {
|
||||
TeamStore.addChangeListener(this.onTeamChanged);
|
||||
PreferenceStore.addChangeListener(this.onPreferencesChanged);
|
||||
|
||||
// Emit view action
|
||||
GlobalActions.viewLoggedIn();
|
||||
|
||||
startPeriodicStatusUpdates();
|
||||
startPeriodicSync();
|
||||
|
||||
@@ -201,7 +200,7 @@ export default class NeedsTeam extends React.Component {
|
||||
if (channel == null) {
|
||||
// the permalink view is not really tied to a particular channel but still needs it
|
||||
const postId = PostStore.getFocusedPostId();
|
||||
const post = PostStore.getEarliestPostFromPage(postId);
|
||||
const post = getPost(store.getState(), postId);
|
||||
|
||||
// the post take some time before being available on page load
|
||||
if (post != null) {
|
||||
|
||||
Ссылка в новой задаче
Block a user