Scroll to bottom after sed editing message
parent
1cd9548cee
commit
3189ec5ab7
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue