                                 onClick: @props.displayImages,
                                 t 'message images display'
                 iframe
-                    'data-message-id': @props.message.get 'id'
-                    name: "frame-#{@props.message.get 'id'}"
+                    'data-message-id': @props.messageID
+                    name: "frame-#{@props.messageID}"
                     className: 'content',
                     ref: 'content',
                     allowTransparency: true,

                doc = frame.contentDocument or frame.contentWindow?.document
                if doc?
                    doc.documentElement.innerHTML = @props.html
                    window.cozyMails.customEvent "MESSAGE_LOADED", @props.message.toJS()
                    updateHeight = (e) ->
                        height = doc.documentElement.getBoundingClientRect().height
                        if height < 60
                            frame.style.height = "60px"
                        else

                    @renderCompose()
                    MessageContent
                        ref: 'messageContent'
                        messageID: message.get 'id'
                        messageDisplayHTML: messageDisplayHTML
                        html: @_htmlContent
                        text: prepared.text
