mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-18 15:15:48 +02:00
Fix used account in updated middle-click actions
This commit is contained in:
parent
7346ce370d
commit
9ed8b0d904
@ -826,15 +826,13 @@
|
|||||||
let tweet = column.findChirp(ele.attr("data-tweet-id")) || column.findChirp(ele.attr("data-key"));
|
let tweet = column.findChirp(ele.attr("data-tweet-id")) || column.findChirp(ele.attr("data-key"));
|
||||||
return if !tweet;
|
return if !tweet;
|
||||||
|
|
||||||
// TODO fix "from" to accept reply-account plugin
|
|
||||||
|
|
||||||
switch($(this).attr("rel")){
|
switch($(this).attr("rel")){
|
||||||
case "reply":
|
case "reply":
|
||||||
let main = tweet.getMainTweet();
|
let main = tweet.getMainTweet();
|
||||||
|
|
||||||
$(document).trigger("uiDockedComposeTweet", {
|
$(document).trigger("uiDockedComposeTweet", {
|
||||||
type: "reply",
|
type: "reply",
|
||||||
from: [ TD.storage.clientController.client.getDefaultAccount() ],
|
from: [ tweet.account.getKey() ],
|
||||||
inReplyTo: {
|
inReplyTo: {
|
||||||
id: tweet.id,
|
id: tweet.id,
|
||||||
htmlText: main.htmlText,
|
htmlText: main.htmlText,
|
||||||
@ -844,7 +842,8 @@
|
|||||||
profileImageURL: main.user.profileImageURL
|
profileImageURL: main.user.profileImageURL
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mentions: tweet.getReplyUsers()
|
mentions: tweet.getReplyUsers(),
|
||||||
|
element: ele
|
||||||
});
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -854,7 +853,7 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "retweet":
|
case "retweet":
|
||||||
tweet.quoteTo([ TD.storage.clientController.client.getDefaultAccount() ]);
|
tweet.quoteTo([ tweet.account.getKey() ]); // TODO fix "from" to accept reply-account plugin
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user