feat: Enhance file upload logging and error handling in TransportManager and ChatViewModel
This commit is contained in:
@@ -1934,9 +1934,14 @@ class ChatViewModel(application: Application) : AndroidViewModel(application) {
|
||||
var uploadTag = ""
|
||||
|
||||
if (!isSavedMessages) {
|
||||
Log.d(TAG, "👤 📤 Uploading avatar to Transport Server...")
|
||||
uploadTag = TransportManager.uploadFile(avatarAttachmentId, encryptedAvatarBlob)
|
||||
Log.d(TAG, "👤 📤 Upload complete, tag: $uploadTag")
|
||||
try {
|
||||
Log.d(TAG, "👤 📤 Uploading avatar to Transport Server...")
|
||||
uploadTag = TransportManager.uploadFile(avatarAttachmentId, encryptedAvatarBlob)
|
||||
Log.d(TAG, "👤 📤 Upload complete, tag: $uploadTag")
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "👤 ❌ Failed to upload avatar to Transport Server", e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
// Preview содержит tag::blurhash (как в desktop)
|
||||
|
||||
Reference in New Issue
Block a user