@@ -1746,7 +1746,6 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
17461746 "SELECT
17471747 m.chat_id AS chat_id,
17481748 m.state AS state,
1749- m.download_state as download_state,
17501749 m.ephemeral_timer AS ephemeral_timer,
17511750 m.param AS param,
17521751 m.from_id AS from_id,
@@ -1759,7 +1758,6 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
17591758 |row| {
17601759 let chat_id: ChatId = row. get ( "chat_id" ) ?;
17611760 let state: MessageState = row. get ( "state" ) ?;
1762- let download_state: DownloadState = row. get ( "download_state" ) ?;
17631761 let param: Params = row. get :: < _ , String > ( "param" ) ?. parse ( ) . unwrap_or_default ( ) ;
17641762 let from_id: ContactId = row. get ( "from_id" ) ?;
17651763 let rfc724_mid: String = row. get ( "rfc724_mid" ) ?;
@@ -1771,7 +1769,6 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
17711769 id,
17721770 chat_id,
17731771 state,
1774- download_state,
17751772 param,
17761773 from_id,
17771774 rfc724_mid,
@@ -1804,7 +1801,6 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
18041801 id,
18051802 curr_chat_id,
18061803 curr_state,
1807- curr_download_state,
18081804 curr_param,
18091805 curr_from_id,
18101806 curr_rfc724_mid,
@@ -1814,14 +1810,7 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
18141810 _curr_ephemeral_timer,
18151811 ) in msgs
18161812 {
1817- if curr_download_state != DownloadState :: Done {
1818- if curr_state == MessageState :: InFresh {
1819- // Don't mark partially downloaded messages as seen or send a read receipt since
1820- // they are not really seen by the user.
1821- update_msg_state ( context, id, MessageState :: InNoticed ) . await ?;
1822- updated_chat_ids. insert ( curr_chat_id) ;
1823- }
1824- } else if curr_state == MessageState :: InFresh || curr_state == MessageState :: InNoticed {
1813+ if curr_state == MessageState :: InFresh || curr_state == MessageState :: InNoticed {
18251814 update_msg_state ( context, id, MessageState :: InSeen ) . await ?;
18261815 info ! ( context, "Seen message {}." , id) ;
18271816
0 commit comments