mirror of
				https://github.com/oxen-io/session-android.git
				synced 2025-10-25 01:11:17 +00:00 
			
		
		
		
	Refactor MMS send/download to be synchronous.
1) Make the radio change a synchronous action with a timeout. 2) Move the send logic into an MmsTransport, in preparation for UniversalTransport composition. 3) Move the download logic into a synchronous receiver.
This commit is contained in:
		| @@ -240,6 +240,11 @@ public class MmsDatabase extends Database implements MmsSmsColumns { | ||||
|     notifyConversationListeners(getThreadIdForMessage(messageId)); | ||||
|   } | ||||
|  | ||||
|   public void markAsSending(long messageId) { | ||||
|     updateMailboxBitmask(messageId, Types.BASE_TYPE_MASK, Types.BASE_SENDING_TYPE); | ||||
|     notifyConversationListeners(getThreadIdForMessage(messageId)); | ||||
|   } | ||||
|  | ||||
|   public void markAsSent(long messageId, byte[] mmsId, long status) { | ||||
|     SQLiteDatabase database     = databaseHelper.getWritableDatabase(); | ||||
|     ContentValues contentValues = new ContentValues(); | ||||
|   | ||||
| @@ -349,7 +349,7 @@ public class ThreadDatabase extends Database { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   public Recipients getRecipientsForThreadId(Context context, long threadId) { | ||||
|   public Recipients getRecipientsForThreadId(long threadId) { | ||||
|     SQLiteDatabase db = databaseHelper.getReadableDatabase(); | ||||
|     Cursor cursor     = null; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Moxie Marlinspike
					Moxie Marlinspike