Implement WhatsApp->Matrix power level bridging

This commit is contained in:
Tulir Asokan
2018-08-26 16:11:48 +03:00
parent d3a178ecf3
commit f78fb72622
5 changed files with 115 additions and 10 deletions

View File

@ -67,7 +67,7 @@ func (store *AutosavingStateStore) SetMembership(roomID, userID, membership stri
store.Save()
}
func (store *AutosavingStateStore) SetPowerLevels(roomID string, levels gomatrix.PowerLevels) {
func (store *AutosavingStateStore) SetPowerLevels(roomID string, levels *gomatrix.PowerLevels) {
store.BasicStateStore.SetPowerLevels(roomID, levels)
store.Save()
}