mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
BugFix for alternating follow/unfollow when following multiple people in a row
This commit is contained in:
parent
63262a1e35
commit
85c7d0bb4a
@ -208,7 +208,10 @@ object LocalCache {
|
||||
fun consume(event: ContactListEvent) {
|
||||
val user = getOrCreateUser(event.pubKey.toHexKey())
|
||||
|
||||
if (event.createdAt > user.updatedFollowsAt) {
|
||||
if (event.createdAt > user.updatedFollowsAt && event.follows.size > 0) {
|
||||
// Saves relay list only if it's a user that is currently been seen
|
||||
user.latestContactList = event
|
||||
|
||||
user.updateFollows(
|
||||
event.follows.map {
|
||||
try {
|
||||
@ -239,9 +242,6 @@ object LocalCache {
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
// Saves relay list only if it's a user that is currently been seen
|
||||
user.latestContactList = event
|
||||
}
|
||||
|
||||
Log.d(
|
||||
|
Loading…
x
Reference in New Issue
Block a user