do not return translation if it matches the src text

This commit is contained in:
2022-02-26 09:34:26 +01:00
parent 8aaf60005d
commit 7260bedfa4

View File

@@ -711,7 +711,7 @@ func getMatchChat(w http.ResponseWriter, r *http.Request) {
goto sendNormalResp goto sendNormalResp
} }
if srcLang == lang.String() { if srcLang == lang.String() || strings.TrimSpace(translated) == strings.TrimSpace(stat.Message) {
goto sendNormalResp goto sendNormalResp
} }