Skip to content

Commit e81173c

Browse files
committed
Update feild name
1 parent 77cc1b3 commit e81173c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/app/src/main/java/com/httpsms/FirebaseMessagingService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class MyFirebaseMessagingService : FirebaseMessagingService() {
186186
?: run {
187187
val extension = mimeType?.let { mime ->
188188
val ext = mime.substringAfterLast("/")
189-
if (ext.isNotBlank()) ".$ext" else ""
189+
if (ext.isNotBlank()) ".$ext" else ".bin"
190190
} ?: ""
191191
"attachment$extension"
192192
}

api/pkg/entities/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type Message struct {
9090
UserID UserID `json:"user_id" gorm:"index:idx_messages__user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
9191
Contact string `json:"contact" example:"+18005550100"`
9292
Content string `json:"content" example:"This is a sample text message"`
93-
Attachments pq.StringArray `json:"attachments" gorm:"type:text[]" swaggertype:"array,string"`
93+
Attachments pq.StringArray `json:"attachments" gorm:"type:text[];column:attachments_new" swaggertype:"array,string"`
9494
Encrypted bool `json:"encrypted" example:"false" gorm:"default:false"`
9595
Type MessageType `json:"type" example:"mobile-terminated"`
9696
Status MessageStatus `json:"status" example:"pending"`

0 commit comments

Comments
 (0)