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

Commit 353c88b1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Sync address parts before syncing message content" into main

parents c6a468a6 b0cc9240
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -390,11 +390,15 @@ class MapClientContent {

            debug("Map InsertedThread" + results);

            // Some Messenger Applications don't listen to address table changes and only listen
            // for message content changes. Adding the address parts first makes it so they're
            // already in the tables when a given app syncs due to content updates. Otherwise, we
            // risk a race where the address content may not be ready.
            storeAddressPart(message, results);

            for (MimePart part : mmsBmessage.getMimeParts()) {
                storeMmsPart(part, results);
            }

            storeAddressPart(message, results);
        } catch (Exception e) {
            error("Error while storing MMS: " + e.toString());
            throw e;