Fix self-assignment of callback.

This commit is contained in:
Tobias Preuss 2020-06-21 20:07:34 +02:00
parent b728e10616
commit e7143b53d5
2 changed files with 3 additions and 2 deletions

View file

@ -22,7 +22,8 @@ Build 🧱:
- SDK is now API level 21 minimum, and so RiotX (#405)
Other changes:
-
- Fix self-assignment of callback in `DefaultRoomPushRuleService#setRoomNotificationState` (#1520)
- Random housekeeping clean-ups indicated by Lint (#1520)
Changes in RiotX 0.22.0 (2020-06-15)
===================================================

View file

@ -51,7 +51,7 @@ internal class DefaultRoomPushRuleService @AssistedInject constructor(@Assisted
override fun setRoomNotificationState(roomNotificationState: RoomNotificationState, matrixCallback: MatrixCallback<Unit>): Cancelable {
return setRoomNotificationStateTask
.configureWith(SetRoomNotificationStateTask.Params(roomId, roomNotificationState)) {
this.callback = callback
this.callback = matrixCallback
}
.executeBy(taskExecutor)
}