Replace 1 with DC_CONTACT_ID_SELF

This commit is contained in:
Alexander Krotov
2020-07-01 00:59:07 +03:00
parent 56518420bc
commit d79c918c9e

View File

@@ -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