Skip to content

Commit

Permalink
Fix receiving status (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterXProgrammer authored Sep 28, 2023
1 parent a0d705c commit 8e21f5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion res/2) Add functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@ func parseReceivedMessage(evt *events.Message, wg *sync.WaitGroup) {
}
log.Infof("Saved link preview thumbnail in message to %s", path)
jsonData, _ = AppendToJSON(jsonData, "path", path)
jsonData, _ = AppendToJSON(jsonData, "type", "link_message")
if !status_message {
jsonData, _ = AppendToJSON(jsonData, "type", "link_message")
} else {
jsonData, _ = AppendToJSON(jsonData, "type", "status_message")
}
jsonData, _ = AppendToJSON(jsonData, "message", message)
jsonData, _ = AppendToJSON(jsonData, "link_matched_text", matched_text)
jsonData, _ = AppendToJSON(jsonData, "link_canonical_url", canonical_url)
Expand Down

0 comments on commit 8e21f5c

Please sign in to comment.