diff --git a/pos-module-chat/modules/chat/public/views/partials/conversations.liquid b/pos-module-chat/modules/chat/public/views/partials/conversations.liquid index e13dead..eb88248 100644 --- a/pos-module-chat/modules/chat/public/views/partials/conversations.liquid +++ b/pos-module-chat/modules/chat/public/views/partials/conversations.liquid @@ -31,7 +31,7 @@ %} {% if conversation.last_message or conversation['current'] %}
  • - {% render 'modules/chat/conversation', id: conversation.id, current: conversation['current'], name: name, image_src: image_src, last_message: last_message, timezone: current_profile.timezone, unread: unread %} + {% render 'modules/chat/conversation', id: conversation.id, current: conversation['current'], name: name, image_src: image_src, last_message: last_message, timezone: current_profile.properties.timezone, unread: unread %}
  • {% endif %} {% endfor %} diff --git a/pos-module-chat/modules/chat/public/views/partials/inbox.liquid b/pos-module-chat/modules/chat/public/views/partials/inbox.liquid index 0e9e96a..7411d4e 100644 --- a/pos-module-chat/modules/chat/public/views/partials/inbox.liquid +++ b/pos-module-chat/modules/chat/public/views/partials/inbox.liquid @@ -30,7 +30,7 @@ window.pos.profile = {{ current_profile }}; } - window.pos.profile.timezone = {% if current_profile.timezone %} '{{ current_profile.timezone }}' {% else %} null {% endif %}; + window.pos.profile.timezone = {% if current_profile.properties.timezone %} '{{ current_profile.properties.timezone }}' {% else %} null {% endif %}; /* translations used in module */ window.pos.translations = { @@ -124,7 +124,7 @@ assign authored = false endif - render 'modules/chat/message', message: message, authored: authored, timezone: current_profile.timezone + render 'modules/chat/message', message: message, authored: authored, timezone: current_profile.properties.timezone endfor %} @@ -166,7 +166,7 @@ ] %} {% for message in messages %} - {% render 'modules/chat/message', message: message, authored: false, timezone: current_profile.timezone %} + {% render 'modules/chat/message', message: message, authored: false, timezone: current_profile.properties.timezone %} {% endfor %} {% endif %} diff --git a/pos-module-chat/modules/chat/template-values.json b/pos-module-chat/modules/chat/template-values.json index 83af43c..e810a25 100644 --- a/pos-module-chat/modules/chat/template-values.json +++ b/pos-module-chat/modules/chat/template-values.json @@ -2,7 +2,7 @@ "name": "Pos Module Chat", "machine_name": "chat", "type": "module", - "version": "2.1.1", + "version": "2.1.2", "dependencies": { "core": "^2.1.9", "user": "^5.2.10", diff --git a/pos-module-chat/pos-module.json b/pos-module-chat/pos-module.json index 8892d0e..d4c83b3 100644 --- a/pos-module-chat/pos-module.json +++ b/pos-module-chat/pos-module.json @@ -7,5 +7,5 @@ }, "machine_name": "chat", "name": "Pos Module Chat", - "version": "2.1.1" + "version": "2.1.2" } \ No newline at end of file