Skip to content

Commit

Permalink
remove loading element
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Jul 1, 2024
1 parent 0d16508 commit a775d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 2 additions & 11 deletions packages/messenger-widget/src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,8 @@ export function Chat() {
}} //To put endMessage and loader to the top.
inverse={true}
hasMore={hasMoreOldMsgs}
loader={
<h4
style={{
fontSize: '14px',
textAlign: 'center',
color: 'white',
}}
>
Loading old messages...
</h4>
}
//Maybe we add a cusotm loader later
loader={<></>}
scrollableTarget="chat-box"
>
{messages.length > 0 &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { handleMessagesFromDeliveryService } from './sources/handleMessagesFromD
import { handleMessagesFromStorage } from './sources/handleMessagesFromStorage';
import { handleMessagesFromWebSocket } from './sources/handleMessagesFromWebSocket';

const DEFAULT_MESSAGE_PAGESIZE = 100;
const DEFAULT_MESSAGE_PAGESIZE = 27;

//Message source to identify where a message comes from. This is important to handle pagination of storage messages properly
export enum MessageSource {
Expand Down

0 comments on commit a775d59

Please sign in to comment.