mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 20:32:50 +02:00
Get member data when running backfill
This commit is contained in:
parent
6c23c5725a
commit
67291a3736
4 changed files with 17 additions and 9 deletions
|
@ -210,7 +210,7 @@ async function syncUser(user, member, channel, guild, roomID) {
|
|||
if (hashHasChanged && !wouldOverwritePreExisting) {
|
||||
// Update room member state
|
||||
await api.sendState(roomID, "m.room.member", mxid, content, mxid)
|
||||
// Update power levels (only if we can actually access the member roles)
|
||||
// Update power levels
|
||||
await api.setUserPower(roomID, mxid, powerLevel)
|
||||
// Update cached hash
|
||||
db.prepare("UPDATE sim_member SET hashed_profile_content = ? WHERE room_id = ? AND mxid = ?").run(currentHash, roomID, mxid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue