DEV: Cleanup
This commit is contained in:
parent
c0daa8dbf7
commit
bdaf01bbb0
@ -1,20 +0,0 @@
|
||||
# Single message actions
|
||||
|
||||
reply - (reply)
|
||||
react - (react)
|
||||
toggle bookmark - (toggleBookmark)
|
||||
react with emoji picker - (startReactionForMessageActions)
|
||||
flag - secondaryButtons (flag)
|
||||
copy link to message - secondaryButtons (copyLinkToMessage)
|
||||
start editing message - secondaryButtons (edit)
|
||||
delete message - secondaryButtons (deleteMessage)
|
||||
restore message - secondaryButtons (restore)
|
||||
rebake message - secondaryButtons (rebakeMessage)
|
||||
open thread - secondaryButtons (openThread)
|
||||
select message - secondaryButtons (selectMessage) - though this triggers the multi message action
|
||||
|
||||
MOST of these are guarded behind checks e.g. showEditButton, selectingMessages.
|
||||
|
||||
# Muli message action
|
||||
|
||||
select messages
|
||||
@ -30,8 +30,6 @@ export default class ChatLivePanel {
|
||||
}
|
||||
|
||||
get canInteractWithChat() {
|
||||
// not really sure about this, would prefer details is a nice object
|
||||
// that has tracked for all its props....
|
||||
return !this.details.user_silenced;
|
||||
}
|
||||
|
||||
@ -39,7 +37,6 @@ export default class ChatLivePanel {
|
||||
return this.messages.filterBy("selected").mapBy("id");
|
||||
}
|
||||
|
||||
// reacting to actions
|
||||
onSelectMessage(message) {
|
||||
this.lastSelectedMessage = message;
|
||||
this.selectingMessages = true;
|
||||
@ -115,8 +112,6 @@ export default class ChatLivePanel {
|
||||
this.messages.setEach("selected", false);
|
||||
}
|
||||
|
||||
// private
|
||||
|
||||
@bind
|
||||
_debouncedOnHoverMessage(message) {
|
||||
this.hoveredMessageId =
|
||||
|
||||
Reference in New Issue
Block a user