WIP: feature: threads'n'forums #74

Draft
Guzio wants to merge 109 commits from Guzio/out-of-your-element:mergable-fr-fr into main
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
*/
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
console.log("matched to: "+threadID)
if (!threadID) return threadID;
return select("channel_room", "room_id", {channel_id: threadID}).pluck().get()
}