Update from with extra

This commit is contained in:
M66B 2019-08-03 14:55:10 +02:00
parent ec5709bdc8
commit 07d0b30816
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);