# נכשל בקבלת message.cooked עבור תגובת מלחין הצ'אט

**URL:** <https://meta.discourse.org/t/failing-to-get-message-cooked-for-chat-composer-reply/226630>\
**Category:** Development\
**Tags:** chat\
**Created:** [10 במאי,‏ 2022,‏ 4:41am UTC](https://meta.discourse.org/t/failing-to-get-message-cooked-for-chat-composer-reply/226630 "2022-05-10T04:41:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Post date:** [10 במאי,‏ 2022,‏ 4:41am UTC](https://meta.discourse.org/t/failing-to-get-message-cooked-for-chat-composer-reply/226630/1 "2022-05-10T04:41:32Z")

</div>

I’m trying to create a blockquote-like style for the chat reply and I have it working for the chat message but not for the chat-composer-message-details.hbs.

This is `chat-composer-message-details.hbs`:

```javascript
<div class="chat-composer-message-details">
  <div class="tc-reply-display">
    {{d-icon icon}}
    {{chat-user-avatar user=message.user}}
    <span class="tc-reply-username">{{message.user.username}}</span>
    <span class="tc-reply-msg">{{replace-emoji message.excerpt}}</span>
  </div>

  {{flat-button
    action=action
    class="cancel-message-action"
    icon="times-circle"
    title=title
  }}
</div>

```

And I’m trying to add this into it by overriding the template:

```javascript
        <span class="tc-reply-msg">
            {{#if message.uploads.length}}
                <span class="tc-reply-uploads-icon">
                {{d-icon "camera"}}
                </span>
            {{/if}}
            
            {{#if message.cooked}}
                {{replace-emoji message.cooked}}
            {{else}}
                Photo
            {{/if}}
        </span>

```

And yet neither the `message.cooked` nor the `message.uploads.length` seems to find anything, even if the message to which I’m replying has text and/or an upload. When I put `message.excerpt` instead of `message.cooked`, the text shows, but only an excerpt of it and I’d like to see the full text.

I’m not sure how to debug the JSON object, if I put `{{message}}` it just shows `[object Object]`.

Any ideas what might be happening or how I can better debug it?

---

_[View the full topic](https://meta.discourse.org/t/failing-to-get-message-cooked-for-chat-composer-reply/226630)._
