summaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
Diffstat (limited to 'discord')
-rw-r--r--discord/discord.cpp1
-rw-r--r--discord/message.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/discord/discord.cpp b/discord/discord.cpp
index bb84f5f..6bf8cb8 100644
--- a/discord/discord.cpp
+++ b/discord/discord.cpp
@@ -523,7 +523,6 @@ void DiscordClient::HandleGatewayMessageUpdate(const GatewayMessage &msg) {
current->from_json_edited(msg.Data);
- current->SetEdited();
m_signal_message_update.emit(id, current->ChannelID);
}
diff --git a/discord/message.cpp b/discord/message.cpp
index 4134435..29f3dd2 100644
--- a/discord/message.cpp
+++ b/discord/message.cpp
@@ -107,6 +107,8 @@ void Message::from_json_edited(const nlohmann::json &j) {
JS_O("content", Content);
JS_O("timestamp", Timestamp);
JS_ON("edited_timestamp", EditedTimestamp);
+ if (EditedTimestamp.size() > 0)
+ SetEdited();
JS_O("tts", IsTTS);
JS_O("mention_everyone", DoesMentionEveryone);
JS_O("mentions", Mentions);