Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79c93524 authored by Tom Taylor's avatar Tom Taylor Committed by Android Git Automerger
Browse files

am 747eeb4c: Merge "Thread with no recipients getting created" into jb-dev

* commit '747eeb4c':
  Thread with no recipients getting created
parents 0af3e957 747eeb4c
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1058,9 +1058,10 @@ public class PduPersister {
                }
            }
        }

        if (!recipients.isEmpty()) {
            long threadId = Threads.getOrCreateThreadId(mContext, recipients);
            values.put(Mms.THREAD_ID, threadId);
        }

        SqliteWrapper.update(mContext, mContentResolver, uri, values, null, null);
    }
@@ -1299,7 +1300,6 @@ public class PduPersister {
        }

        HashSet<String> recipients = new HashSet<String>();
        long threadId = DUMMY_THREAD_ID;
        int msgType = pdu.getMessageType();
        // Here we only allocate thread ID for M-Notification.ind,
        // M-Retrieve.conf and M-Send.req.
@@ -1326,9 +1326,11 @@ public class PduPersister {
                    }
                }
            }
            threadId = Threads.getOrCreateThreadId(mContext, recipients);
        }
            if (!recipients.isEmpty()) {
                long threadId = Threads.getOrCreateThreadId(mContext, recipients);
                values.put(Mms.THREAD_ID, threadId);
            }
        }

        // Save parts first to avoid inconsistent message is loaded
        // while saving the parts.