mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	feat: Order previous conversations by last activity (#10825)
This commit is contained in:
		| @@ -2,7 +2,7 @@ class Api::V1::Accounts::Contacts::ConversationsController < Api::V1::Accounts:: | |||||||
|   def index |   def index | ||||||
|     @conversations = Current.account.conversations.includes( |     @conversations = Current.account.conversations.includes( | ||||||
|       :assignee, :contact, :inbox, :taggings |       :assignee, :contact, :inbox, :taggings | ||||||
|     ).where(inbox_id: inbox_ids, contact_id: @contact.id).order(id: :desc).limit(20) |     ).where(inbox_id: inbox_ids, contact_id: @contact.id).order(last_activity_at: :desc).limit(20) | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   private |   private | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sivin Varghese
					Sivin Varghese