mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-24 13:44:21 +00:00
change order to safely update _followingSeqNum: first save to dht (increment seq) and then save to local storage.
Thanks to Alan Chan.
This commit is contained in:
parent
44461ec8c4
commit
c269007abc
@ -301,8 +301,8 @@ function saveFollowingToDht() {
|
||||
|
||||
// save following to local storage, dht and json rpc
|
||||
function saveFollowing(cbFunc, cbArg) {
|
||||
saveFollowingToStorage();
|
||||
saveFollowingToDht();
|
||||
saveFollowingToStorage();
|
||||
updateFollowing(cbFunc, cbArg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user