FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update feild name · TASLIM-ENIOLLA/httpsms@e81173c · GitHub

Commit e81173c

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL