File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
android/app/src/main/java/com/httpsms Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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"`
You can’t perform that action at this time.
0 commit comments