mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
Replace 1 with DC_CONTACT_ID_SELF
This commit is contained in:
@@ -337,10 +337,10 @@ impl Context {
|
|||||||
let action1 = action.trim_end_matches('.');
|
let action1 = action.trim_end_matches('.');
|
||||||
match from_id {
|
match from_id {
|
||||||
0 => action,
|
0 => action,
|
||||||
1 => {
|
DC_CONTACT_ID_SELF => {
|
||||||
self.stock_string_repl_str(StockMessage::MsgActionByMe, action1)
|
self.stock_string_repl_str(StockMessage::MsgActionByMe, action1)
|
||||||
.await
|
.await
|
||||||
} // DC_CONTACT_ID_SELF
|
}
|
||||||
_ => {
|
_ => {
|
||||||
let displayname = Contact::get_by_id(self, from_id)
|
let displayname = Contact::get_by_id(self, from_id)
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user