消息显示支持换行

dev/chat
Lei OT 2 years ago
parent 21c0341a02
commit 5631ba4997

@ -13,7 +13,7 @@ export class RealTimeAPI {
retry(10) retry(10)
// retry({ // retry({
// count: 10, // count: 10,
// delay: () => timer(3000) // delay: 3000, // () => timer(3000)
// }) // })
); );
} }

@ -42,7 +42,7 @@ const Messages = (() => {
{...(message.sender === 'me' ? { {...(message.sender === 'me' ? {
style: { backgroundColor: '#ccd5ae' }, style: { backgroundColor: '#ccd5ae' },
notchStyle: {fill: '#ccd5ae'}, notchStyle: {fill: '#ccd5ae'},
className: 'whatsappme-container', className: 'whatsappme-container whitespace-pre-wrap',
} : {})} } : {})}
// notchStyle={{fill: '#ccd5ae'}} // notchStyle={{fill: '#ccd5ae'}}
// copiableDate={false} // copiableDate={false}

Loading…
Cancel
Save