Comparison of all the stuff I did. #6

Merged
Guzio merged 48 commits from fuckery into main 2026-03-02 15:17:09 +00:00
Showing only changes of commit 7895f89cc0 - Show all commits

View file

@ -402,7 +402,9 @@ async function setUserPowerCascade(spaceID, mxid, power, api) {
* @param {string} eventID * @param {string} eventID
*/ */
function getThreadRoomFromThreadEvent(eventID){ function getThreadRoomFromThreadEvent(eventID){
console.log("searching for: "+eventID)
const threadID = select("event_message", "message_id", {event_id: eventID}).pluck().get() //Discord thread ID === its message ID const threadID = select("event_message", "message_id", {event_id: eventID}).pluck().get() //Discord thread ID === its message ID
console.log("matched to: "+threadID)
if (!threadID) return threadID; if (!threadID) return threadID;
return select("channel_room", "room_id", {channel_id: threadID}).pluck().get() return select("channel_room", "room_id", {channel_id: threadID}).pluck().get()
} }