Commit b26ffa94 authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su Add a condition to show the divider

This adds a condition to print the new message divider so that it
is not shown for messages send by the user.

parent c47d98a4
Pipeline #9073 passed with stage
in 18 minutes and 57 seconds
......@@ -1244,7 +1244,7 @@ impl AppOp {
MsgPos::Top => messages.insert(&m, 1),
if last == LastViewed::Inline {
if last == LastViewed::Inline && msg.sender != self.uid.clone().unwrap_or_default() {
let divider: gtk::ListBoxRow = widgets::divider::new("New Messages");
match msgpos {
MsgPos::Bottom => messages.add(&divider),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment