mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-09 06:15:49 +02:00
Make middle-click instant quote work with reply-account plugin
This commit is contained in:
parent
9ed8b0d904
commit
093ac1ac40
Resources
@ -8,7 +8,7 @@ Custom reply account
|
||||
chylex
|
||||
|
||||
[version]
|
||||
1.2.3
|
||||
1.2.4
|
||||
|
||||
[website]
|
||||
https://tweetduck.chylex.com
|
||||
@ -20,4 +20,4 @@ configuration.js
|
||||
configuration.default.js
|
||||
|
||||
[requires]
|
||||
1.8
|
||||
1.10.3
|
@ -6,7 +6,7 @@ enabled(){
|
||||
this.lastSelectedAccount = null;
|
||||
|
||||
this.uiComposeTweetEvent = (e, data) => {
|
||||
return if data.type !== "reply" || data.popFromInline || !("element" in data);
|
||||
return if !(data.type === "reply" || (data.type === "tweet" && "quotedTweet" in data)) || data.popFromInline || !("element" in data);
|
||||
|
||||
var query;
|
||||
|
||||
|
@ -853,7 +853,15 @@
|
||||
break;
|
||||
|
||||
case "retweet":
|
||||
tweet.quoteTo([ tweet.account.getKey() ]); // TODO fix "from" to accept reply-account plugin
|
||||
TD.controller.stats.quoteTweet();
|
||||
|
||||
$(document).trigger("uiComposeTweet", {
|
||||
type: "tweet",
|
||||
from: [ tweet.account.getKey() ],
|
||||
quotedTweet: tweet.getMainTweet(),
|
||||
element: ele // triggers reply-account plugin
|
||||
});
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user