Skip to content

Commit

Permalink
Fix: Stop SkyHanni messages from being sent twice by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Oct 14, 2024
1 parent 728a70d commit c713941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ object ChatUtils {
): Boolean {
val text = ChatComponentText(message)

if (replaceSameMessage) {
return if (replaceSameMessage) {
text.send(getUniqueMessageIdForString(message))
true
} else {
chat(text)
}
return chat(text)
}

fun chat(message: IChatComponent): Boolean {
Expand Down

0 comments on commit c713941

Please sign in to comment.