Update from with extra

pull/160/head
M66B 5 years ago
parent ec5709bdc8
commit 07d0b30816

@ -339,6 +339,9 @@ public interface DaoMessage {
@Query("UPDATE message SET identity = :identity WHERE id = :id")
int setMessageIdentity(long id, Long identity);
@Query("UPDATE message SET `from` = :from WHERE id = :id")
int setMessageFrom(long id, String from);
@Query("UPDATE message SET uid = :uid WHERE id = :id")
int setMessageUid(long id, Long uid);

@ -373,6 +373,7 @@ public class ServiceSend extends ServiceBase {
db.beginTransaction();
db.message().setMessageIdentity(message.id, null);
db.message().setMessageFrom(message.id, DB.Converters.encodeAddresses(imessage.getFrom())); // extra
db.message().setMessageSent(message.id, time);
db.message().setMessageReceiptRequested(message.id, ident.delivery_receipt || ident.read_receipt);
db.message().setMessageSeen(message.id, true);

Loading…
Cancel
Save