@@ -1539,7 +1539,6 @@ async fn add_parts(
1539
1539
}
1540
1540
}
1541
1541
1542
- let mut txt_raw = "" . to_string ( ) ;
1543
1542
let ( msg, typ) : ( & str , Viewtype ) = if let Some ( better_msg) = & better_msg {
1544
1543
if better_msg. is_empty ( ) && is_partial_download. is_none ( ) {
1545
1544
chat_id = DC_CHAT_ID_TRASH ;
@@ -1554,11 +1553,6 @@ async fn add_parts(
1554
1553
save_mime_modified |= mime_parser. is_mime_modified && !part_is_empty && !hidden;
1555
1554
let save_mime_modified = save_mime_modified && parts. peek ( ) . is_none ( ) ;
1556
1555
1557
- if part. typ == Viewtype :: Text {
1558
- let msg_raw = part. msg_raw . as_ref ( ) . cloned ( ) . unwrap_or_default ( ) ;
1559
- txt_raw = format ! ( "{subject}\n \n {msg_raw}" ) ;
1560
- }
1561
-
1562
1556
let ephemeral_timestamp = if in_fresh {
1563
1557
0
1564
1558
} else {
@@ -1585,7 +1579,7 @@ INSERT INTO msgs
1585
1579
rfc724_mid, chat_id,
1586
1580
from_id, to_id, timestamp, timestamp_sent,
1587
1581
timestamp_rcvd, type, state, msgrmsg,
1588
- txt, txt_normalized, subject, txt_raw, param, hidden,
1582
+ txt, txt_normalized, subject, param, hidden,
1589
1583
bytes, mime_headers, mime_compressed, mime_in_reply_to,
1590
1584
mime_references, mime_modified, error, ephemeral_timer,
1591
1585
ephemeral_timestamp, download_state, hop_info
@@ -1594,7 +1588,7 @@ INSERT INTO msgs
1594
1588
?,
1595
1589
?, ?, ?, ?,
1596
1590
?, ?, ?, ?,
1597
- ?, ?, ?, ?, ?,
1591
+ ?, ?, ?, ?,
1598
1592
?, ?, ?, ?, ?, 1,
1599
1593
?, ?, ?, ?,
1600
1594
?, ?, ?, ?
@@ -1604,7 +1598,7 @@ SET rfc724_mid=excluded.rfc724_mid, chat_id=excluded.chat_id,
1604
1598
from_id=excluded.from_id, to_id=excluded.to_id, timestamp_sent=excluded.timestamp_sent,
1605
1599
type=excluded.type, state=max(state,excluded.state), msgrmsg=excluded.msgrmsg,
1606
1600
txt=excluded.txt, txt_normalized=excluded.txt_normalized, subject=excluded.subject,
1607
- txt_raw=excluded.txt_raw, param=excluded.param,
1601
+ param=excluded.param,
1608
1602
hidden=excluded.hidden,bytes=excluded.bytes, mime_headers=excluded.mime_headers,
1609
1603
mime_compressed=excluded.mime_compressed, mime_in_reply_to=excluded.mime_in_reply_to,
1610
1604
mime_references=excluded.mime_references, mime_modified=excluded.mime_modified, error=excluded.error, ephemeral_timer=excluded.ephemeral_timer,
@@ -1626,8 +1620,6 @@ RETURNING id
1626
1620
if trash || hidden { "" } else { msg } ,
1627
1621
if trash || hidden { None } else { message:: normalize_text( msg) } ,
1628
1622
if trash || hidden { "" } else { & subject } ,
1629
- // txt_raw might contain invalid utf8
1630
- if trash || hidden { "" } else { & txt_raw } ,
1631
1623
if trash {
1632
1624
"" . to_string( )
1633
1625
} else {
0 commit comments