Merge branch 'main' into wt/t_fc02d8b6
All checks were successful
ci / test (pull_request) Successful in 3m2s
All checks were successful
ci / test (pull_request) Successful in 3m2s
This commit is contained in:
commit
dcb98132e2
13 changed files with 552 additions and 21 deletions
13
src/node.rs
13
src/node.rs
|
|
@ -18,6 +18,7 @@ use crate::pay;
|
|||
use crate::profile;
|
||||
use crate::qr;
|
||||
use crate::ratelimit::TokenBucket;
|
||||
use crate::sanitize;
|
||||
use crate::session::{self, Keys};
|
||||
use crate::store::{Friend, FriendProfile, Message, PaymentWrite, Store};
|
||||
use crate::wallet::{self, Wallet};
|
||||
|
|
@ -638,7 +639,11 @@ impl Node {
|
|||
store
|
||||
.lock()
|
||||
.map_err(|e| e.to_string())?
|
||||
.append_message(&sess.peer_identity, "in", &pt)
|
||||
.append_message(
|
||||
&sess.peer_identity,
|
||||
"in",
|
||||
sanitize::display_text(&pt).as_bytes(),
|
||||
)
|
||||
.map_err(|e| e.to_string())?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -673,7 +678,11 @@ impl Node {
|
|||
self.store
|
||||
.lock()
|
||||
.map_err(|e| e.to_string())?
|
||||
.append_message(peer, "in", file::chat_line(name, nbytes).as_bytes())
|
||||
.append_message(
|
||||
peer,
|
||||
"in",
|
||||
sanitize::display_text(file::chat_line(name, nbytes).as_bytes()).as_bytes(),
|
||||
)
|
||||
.map_err(|e| e.to_string())?;
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Reference in a new issue