mirror of
https://github.com/chatmail/core.git
synced 2026-05-14 20:36:30 +03:00
For now, don't resend webxdc's at all
This commit is contained in:
17
src/chat.rs
17
src/chat.rs
@@ -3298,9 +3298,16 @@ WHERE chat_id=?
|
|||||||
OR from_id=?
|
OR from_id=?
|
||||||
OR to_id=?
|
OR to_id=?
|
||||||
)
|
)
|
||||||
|
AND viewtype!=?
|
||||||
ORDER BY timestamp DESC, id DESC LIMIT ?"
|
ORDER BY timestamp DESC, id DESC LIMIT ?"
|
||||||
),
|
),
|
||||||
(chat_id, ContactId::INFO, ContactId::INFO, n_msgs),
|
(
|
||||||
|
chat_id,
|
||||||
|
ContactId::INFO,
|
||||||
|
ContactId::INFO,
|
||||||
|
Viewtype::Webxdc,
|
||||||
|
n_msgs,
|
||||||
|
),
|
||||||
|row: &rusqlite::Row| Ok(row.get::<_, MsgId>(0)?),
|
|row: &rusqlite::Row| Ok(row.get::<_, MsgId>(0)?),
|
||||||
)
|
)
|
||||||
.await?
|
.await?
|
||||||
@@ -4741,11 +4748,9 @@ pub async fn resend_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> {
|
|||||||
/// members of the corresponding chats.
|
/// members of the corresponding chats.
|
||||||
///
|
///
|
||||||
/// NB: Actually `to_fingerprint` is only passed for `OutBroadcast` chats when a new member is
|
/// NB: Actually `to_fingerprint` is only passed for `OutBroadcast` chats when a new member is
|
||||||
/// added. Currently webxdc status updates are re-sent to all broadcast members instead of the
|
/// added. Regarding webxdc's: It is not trivial to resend only the own status updates,
|
||||||
/// requested contact, but this will be changed soon: webxdc status updates won't be re-sent at all
|
/// and it is not trivial to resend them only to the newly-joined member,
|
||||||
/// as they may contain confidential data sent by subscribers to the owner. Of course this may also
|
/// so that for now, webxdc's are not resent at all.
|
||||||
/// happen without resending subscribers' status updates if a webxdc app is "unsafe" for use in
|
|
||||||
/// broadcasts on its own, but this is a separate problem.
|
|
||||||
pub(crate) async fn resend_msgs_ex(
|
pub(crate) async fn resend_msgs_ex(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
msg_ids: &[MsgId],
|
msg_ids: &[MsgId],
|
||||||
|
|||||||
Reference in New Issue
Block a user