mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 00:50:56 -05:00
Scroll to bottom after sed editing message
This commit is contained in:
parent
60947b71ed
commit
82d3dd3c7b
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue