Scroll to bottom after sed editing message

pull/66/head
janderedev 2021-08-12 22:54:54 +02:00
parent 60947b71ed
commit 82d3dd3c7b
No known key found for this signature in database
GPG Key ID: 5D5E18ACB990F57A
1 changed files with 7 additions and 1 deletions

View File

@ -223,7 +223,13 @@ export default observer(({ channel }: Props) => {
if (newContent != msg.content) {
msg.edit({
content: newContent.substr(0, 2000),
}).catch(console.warn);
})
.then(() =>
defer(() =>
renderer.jumpToBottom(SMOOTH_SCROLL_ON_RECEIVE),
),
)
.catch(console.warn);
}
}
} else {