Updates to replyTo feature.

This commit is contained in:
aforge
2021-08-29 00:40:23 +03:00
parent 9660b9016b
commit 53936f11e0
8 changed files with 270 additions and 228 deletions
+2 -6
View File
@@ -904,6 +904,7 @@ class TinodeWeb extends React.Component {
// - msg - Drafty message with content
// - promise - Promise to be resolved when the upload is completed
// - uploader - for tracking progress
// - head - head dictionary to be attached to the message
handleSendMessage(msg, promise, uploader, head) {
const topic = this.tinode.getTopic(this.state.topicSelected);
@@ -912,12 +913,7 @@ class TinodeWeb extends React.Component {
msg._uploader = uploader;
if (head) {
if (!msg.hasOwnProperty('head')) {
msg.head = {};
}
for (const [key, value] of Object.entries(head)) {
msg.head[key] = value;
}
msg.head = Object.assign(msg.head || {}, head);
}
if (!topic.isSubscribed()) {