commit 032b119efea29e32d3fb2e05418e4ec7d74448b6 parent cf29785312c84078e661a19a2cb29b7011acf40b Author: n0tr1v <n0tr1v@protonmail.com> Date: Sun, 2 Apr 2023 03:44:44 -0700 cleanup Diffstat:
| M | src/main.rs | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs @@ -2610,8 +2610,9 @@ fn render_messages( // Simulate a guest view (remove "PMs" and "Members chat" messages) if app.display_guest_view { // TODO: this is not efficient at all - if m.text.text().starts_with(&app.members_tag) - || m.text.text().starts_with(&app.staffs_tag) + let text = m.text.text(); + if text.starts_with(&app.members_tag) + || text.starts_with(&app.staffs_tag) { return None; }