Remove unused code
This commit is contained in:
parent
dad8eb2f48
commit
db790183d8
@ -43,14 +43,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
render () {
|
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;
|
const chatbox = this.model.collection.chatbox;
|
||||||
|
|
||||||
let text = this.model.get('message'),
|
let text = this.model.get('message'),
|
||||||
@ -107,20 +99,6 @@
|
|||||||
return this.el;
|
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 () {
|
getExtraMessageClasses () {
|
||||||
let extra_classes;
|
let extra_classes;
|
||||||
if (_converse.show_message_load_animation) {
|
if (_converse.show_message_load_animation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user