diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index bbc934ec6..92ef192d5 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -858,7 +858,8 @@ class LokiPublicChannelAPI { receivedAt, isPublic: true, message: { - body: adnMessage.text, + // == to compare string and number + body: adnMessage.text == timestamp ? '' : adnMessage.text, attachments, group: { id: this.conversationId, @@ -962,7 +963,7 @@ class LokiPublicChannelAPI { // create a message in the channel async sendMessage(data, messageTimeStamp) { const { quote, attachments, preview } = data; - const text = data.body; + const text = data.body || messageTimeStamp.toString(); const attachmentAnnotations = attachments.map( LokiPublicChannelAPI.getAnnotationFromAttachment );