bhcli

A TUI for chatting on LE PHP Chats (onion)
git clone https://git.dasho.dev/n0tr1v/bhcli.git
Log | Files | Refs | README

commit ae3f4b4fd99cac6a1ad83d056bcd7f3a40551cf8
parent 852a67bca9408f567bb92a96658a97ac138af40f
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun,  2 Apr 2023 00:35:33 -0700

fix bug

Diffstat:
Msrc/main.rs | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -659,10 +659,9 @@ impl LeChatPHPClient { msgs_repl.push(new_msg.clone()); new_msg_ptr += 1; } else if new_parsed_dt == parsed_dt { - if old_msg.text.text() == new_msg.text.text() { + msgs_repl.push(new_msg.clone()); + if old_msg.text.text() != new_msg.text.text() { msgs_repl.push(old_msg.clone()); - } else { - msgs_repl.push(new_msg.clone()); } new_msg_ptr += 1; old_msg_ptr += 1;