[Fix] propper send_message response
This commit is contained in:
parent
d908789f67
commit
4d1d333fc0
1 changed files with 2 additions and 8 deletions
|
|
@ -464,15 +464,9 @@ impl OmikronConnection {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Incoming stored message: store for the recipient, attempt local delivery, notify sender.
|
// Incoming storsed message: store for the recipient, attempt local delivery, notify sender.
|
||||||
if cv.is_type(CommunicationType::message_send) {
|
if cv.is_type(CommunicationType::message_send) {
|
||||||
let sender_id: i64 = if let Some(n) = cv.get_data(DataTypes::sender_id).as_number() {
|
let sender_id: u64 = cv.get_sender();
|
||||||
n as i64
|
|
||||||
} else if let Some(s) = cv.get_data(DataTypes::sender_id).as_str() {
|
|
||||||
s.parse::<i64>().unwrap_or(0)
|
|
||||||
} else {
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
// parse receiver_id (the storage owner for this incoming message)
|
// parse receiver_id (the storage owner for this incoming message)
|
||||||
let receiver_id: i64 = if let Some(n) = cv.get_data(DataTypes::receiver_id).as_number()
|
let receiver_id: i64 = if let Some(n) = cv.get_data(DataTypes::receiver_id).as_number()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue