aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui')
-rw-r--r--vnext/src/ui/Thread.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js
index cae60139..e469b8cf 100644
--- a/vnext/src/ui/Thread.js
+++ b/vnext/src/ui/Thread.js
@@ -137,8 +137,9 @@ export default function Thread(props) {
params.hash = hash;
getMessages('/api/thread', params)
.then(response => {
+ let updatedMessage = response.data.shift();
if (!message.mid) {
- setMessage(response.data.shift());
+ setMessage(updatedMessage);
}
setReplies(response.data);
setLoading(false);