1
0
mirror of git://jb55.com/damus synced 2024-09-29 00:10:43 +00:00
damus/damusTests/Mocking
Daniel D’Aquino e981ae247e Mute: Add user_keypair to MutelistManager
The user keypair is necessary to determine whether or not a given event
is muted or not. Previously, the user keypair had to be passed on each
function call as an optional parameter, and word filtering would not
work unless the caller remembered to add the keypair parameter.

All usages of MutelistManager functions indicate that the desired base
keypair is always the same as the DamusState's keypair that owns the
MutelistManager. Therefore, it is simpler and less error prone to simply
pass the keypair to MutelistManager during its initialization.

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-07 18:05:45 -07:00
..
MockDamusState.swift Mute: Add user_keypair to MutelistManager 2024-05-07 18:05:45 -07:00
MockProfiles.swift test: fix test build error 2024-01-28 15:43:13 -08:00