mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-08-28 23:00:39 +00:00
Properly return topic messages to outer scope
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user