allow abandoning any thread; add `thread:leave`/`thread:part` bangtags
parent
cf333d3699
commit
f0094fd143
|
@ -210,10 +210,8 @@ export default class StatusActionBar extends ImmutablePureComponent {
|
|||
|
||||
menu.push(null);
|
||||
|
||||
if (status.getIn(['account', 'id']) === me || withDismiss) {
|
||||
menu.push({ text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation), action: this.handleConversationMuteClick });
|
||||
menu.push(null);
|
||||
}
|
||||
menu.push({ text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation), action: this.handleConversationMuteClick });
|
||||
menu.push(null);
|
||||
|
||||
if (status.getIn(['account', 'id']) === me) {
|
||||
if (pinnableStatus) {
|
||||
|
|
|
@ -16,6 +16,9 @@ class Bangtags
|
|||
'permalink' => ['link'],
|
||||
'cloudroot' => ['link'],
|
||||
'blogroot' => ['link'],
|
||||
|
||||
'leave' => ['thread'],
|
||||
'part' => ['thread'],
|
||||
}
|
||||
|
||||
@aliases = {
|
||||
|
@ -264,6 +267,9 @@ class Bangtags
|
|||
chunk = nil
|
||||
next if cmd[1].nil?
|
||||
case cmd[1].downcase
|
||||
when 'leave', 'part'
|
||||
next if status.conversation_id.nil?
|
||||
@account.mute_conversation!(status.conversation)
|
||||
when 'reall'
|
||||
if status.conversation_id.present?
|
||||
participants = Status.where(conversation_id: status.conversation_id)
|
||||
|
|
Loading…
Reference in New Issue