[Feature] Change conversation ordering (#640)
* Update conversation's updated_at when a message is created/saved * changed teh ordering of conversation to be based on `updated_at` rather than `created_at`
This commit is contained in:
@@ -51,7 +51,7 @@ class Message < ApplicationRecord
|
||||
|
||||
belongs_to :account
|
||||
belongs_to :inbox
|
||||
belongs_to :conversation
|
||||
belongs_to :conversation, touch: true
|
||||
belongs_to :user, required: false
|
||||
belongs_to :contact, required: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user