{{#if hasChatHistory}}
{{#each item in history}}
{{> contactChatHistoryItem item}}
{{/each}}
{{else}}
{{#if isSearching}}
{{_ "No_results_found"}}
{{else}}
{{_ "No_previous_chat_found"}}
{{/if}}
{{/if}}
{{else}}
{{> loading}}
{{/if}}
{{#if showChatHistoryMessages}}