summaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-09-25 23:02:13 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-09-25 23:02:13 -0400
commit3689f5ae9f439e9d3883817873928c25048a19cd (patch)
tree66cf7cf3f73c034783d96940ed1d0e7daa3e57a3 /discord
parent9b78e829b59b57d003f82eb85177453ef88e21ec (diff)
downloadabaddon-portaudio-3689f5ae9f439e9d3883817873928c25048a19cd.tar.gz
abaddon-portaudio-3689f5ae9f439e9d3883817873928c25048a19cd.zip
redo chat messages just a tad
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);