|
@@ -43,14 +43,6 @@
|
|
|
},
|
|
|
|
|
|
render () {
|
|
|
- /* Renders a chat message based on the passed in attributes.
|
|
|
- *
|
|
|
- * Parameters:
|
|
|
- * (Object) attrs: An object containing the message attributes.
|
|
|
- *
|
|
|
- * Returns:
|
|
|
- * The DOM element representing the message.
|
|
|
- */
|
|
|
const chatbox = this.model.collection.chatbox;
|
|
|
|
|
|
let text = this.model.get('message'),
|
|
@@ -107,20 +99,6 @@
|
|
|
return this.el;
|
|
|
},
|
|
|
|
|
|
- getExtraMessageTemplateAttributes () {
|
|
|
- /* Provides a hook for sending more attributes to the
|
|
|
- * message template.
|
|
|
- *
|
|
|
- * Parameters:
|
|
|
- * (Object) attrs: An object containing message attributes.
|
|
|
- */
|
|
|
- if (this.model.get('is_spoiler')) {
|
|
|
- return {};
|
|
|
- } else {
|
|
|
- return {}
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
getExtraMessageClasses () {
|
|
|
let extra_classes;
|
|
|
if (_converse.show_message_load_animation) {
|