Properly return topic messages to outer scope

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2026-03-20 14:22:35 +01:00
parent d23d7a05c8
commit 95ac620e2d
+2 -2
View File
@@ -1339,9 +1339,9 @@ where
.find(|(_, v)| &v.topic == topic)
{
let msg = if pop {
inbox.complete_msges.remove(idx).unwrap();
inbox.complete_msges.remove(idx).unwrap()
} else {
inbox.complete_msges[idx].clone();
inbox.complete_msges[idx].clone()
};
self.notify_read(&msg);