From d79c918c9e1ef3390d9d81a67ea9e821e930831f Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 1 Jul 2020 00:59:07 +0300 Subject: [PATCH] Replace 1 with DC_CONTACT_ID_SELF --- src/stock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stock.rs b/src/stock.rs index 75375c9e0..eed669481 100644 --- a/src/stock.rs +++ b/src/stock.rs @@ -337,10 +337,10 @@ impl Context { let action1 = action.trim_end_matches('.'); match from_id { 0 => action, - 1 => { + DC_CONTACT_ID_SELF => { self.stock_string_repl_str(StockMessage::MsgActionByMe, action1) .await - } // DC_CONTACT_ID_SELF + } _ => { let displayname = Contact::get_by_id(self, from_id) .await