mirror of
https://github.com/molvqingtai/WebChat.git
synced 2025-11-25 03:15:08 +08:00
perf(toast): show synced message count in history sync notification
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,11 @@ const ToastDomain = Remesh.domain({
|
||||
name: 'Toast.OnSyncHistoryEffect',
|
||||
impl: ({ fromEvent }) => {
|
||||
const onSyncHistory$ = fromEvent(chatRoomDomain.event.OnSyncMessageEvent).pipe(
|
||||
map((message) => toastModule.command.SuccessCommand('Syncing history messages.'))
|
||||
map((messages) =>
|
||||
toastModule.command.SuccessCommand(
|
||||
`Synced ${messages.length} history message${messages.length > 1 ? 's' : ''}.`
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
return onSyncHistory$
|
||||
|
||||
Reference in New Issue
Block a user