diff --git a/pkg/interface/chat/src/js/components/chat.js b/pkg/interface/chat/src/js/components/chat.js index b29b02d023..e82db6a082 100644 --- a/pkg/interface/chat/src/js/components/chat.js +++ b/pkg/interface/chat/src/js/components/chat.js @@ -7,6 +7,7 @@ import { Route, Link } from "react-router-dom"; import { store } from "/store"; import { ResubscribeElement } from '/components/lib/resubscribe-element'; +import { BacklogElement } from '/components/lib/backlog-element'; import { Message } from '/components/lib/message'; import { SidebarSwitcher } from '/components/lib/icons/icon-sidebar-switch.js'; import { ChatTabBar } from '/components/lib/chat-tabbar'; @@ -335,6 +336,10 @@ export class ChatScreen extends Component { ref={el => { this.scrollElement = el; }}> + {(props.chatInitialized && + !(props.station in props.inbox)) && ( + + )} {( props.chatSynced && !(props.station in props.chatSynced) && @@ -361,6 +366,10 @@ export class ChatScreen extends Component { ref={el => { this.scrollElement = el; }}> + {(props.chatInitialized && + !(props.station in props.inbox)) && ( + + )} {( props.chatSynced && !(props.station in props.chatSynced) && diff --git a/pkg/interface/chat/src/js/components/lib/backlog-element.js b/pkg/interface/chat/src/js/components/lib/backlog-element.js new file mode 100644 index 0000000000..fd27c6b5cb --- /dev/null +++ b/pkg/interface/chat/src/js/components/lib/backlog-element.js @@ -0,0 +1,27 @@ +import React, { Component } from 'react'; +import classnames from 'classnames'; + + +export class BacklogElement extends Component { + + + render() { + let props = this.props; + + return ( +
+
+ +

+ Past messages are being restored +

+
+
+ + ); + } +}