mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Scroll to bottom after sed editing message
This commit is contained in:
@@ -223,7 +223,13 @@ export default observer(({ channel }: Props) => {
|
|||||||
if (newContent != msg.content) {
|
if (newContent != msg.content) {
|
||||||
msg.edit({
|
msg.edit({
|
||||||
content: newContent.substr(0, 2000),
|
content: newContent.substr(0, 2000),
|
||||||
}).catch(console.warn);
|
})
|
||||||
|
.then(() =>
|
||||||
|
defer(() =>
|
||||||
|
renderer.jumpToBottom(SMOOTH_SCROLL_ON_RECEIVE),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.catch(console.warn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user