Merge branch 'main' of github.com:hainatravel/global-sales

dev/timezone
Jimmy Liow 1 year ago
commit 47c68336bb

@ -160,7 +160,7 @@ const MessagesList = ({ messages, handlePreview, reference, longListLoading, get
{messages.map((message, index) => (
<MessageBoxWithRef
ref={(el) => (messageRefs.current[index] = el)}
key={message.id}
key={`${message.sn}.${message.id}`}
{...message}
position={message.sender === 'me' ? 'right' : 'left'}
onReplyClick={() => setReferenceMsg(message)}

@ -18,10 +18,10 @@ function ReloadPrompt() {
// if (reloadSW === 'true') {
r &&
setTimeout(() => {
console.log('Checking for sw update, ', `__BUILD_DATE__`, `__APP_VERSION__`);
r.update();
setInterval(() => {
// console.log('Checking for sw update');
r.update();
}, 1000 * 60 * 60 * 8);
}, 1000 * 3);
@ -42,6 +42,7 @@ function ReloadPrompt() {
return (
<>
{/* {offlineReady && (<span>{APP_VERSION}</span>) } */}
{needRefresh && (
<a className=' text-sky-600 px-2' onClick={() => updateServiceWorker(true)}>
有新版本~点击更新🚀

Loading…
Cancel
Save