mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-29 20:34:04 +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
|
chylex
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
1.2.3
|
1.2.4
|
||||||
|
|
||||||
[website]
|
[website]
|
||||||
https://tweetduck.chylex.com
|
https://tweetduck.chylex.com
|
||||||
@ -20,4 +20,4 @@ configuration.js
|
|||||||
configuration.default.js
|
configuration.default.js
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
1.8
|
1.10.3
|
@ -6,7 +6,7 @@ enabled(){
|
|||||||
this.lastSelectedAccount = null;
|
this.lastSelectedAccount = null;
|
||||||
|
|
||||||
this.uiComposeTweetEvent = (e, data) => {
|
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;
|
var query;
|
||||||
|
|
||||||
|
@ -853,7 +853,15 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "retweet":
|
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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user