We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1094e19 commit e3efbdcCopy full SHA for e3efbdc
1 file changed
android/tinySSB/app/src/main/java/nz/scuttlebutt/tremolavossbol/tssb/Repo.kt
@@ -155,20 +155,21 @@ class Repo(val context: MainActivity) {
155
break
156
}
157
158
- want_offs = (want_offs + i + 1) % context.tinyGoset.keys.size
159
- want_is_valid = true
+
160
161
162
if(lst.size > 1) {
163
var vec = lst.slice(1 .. lst.lastIndex) // want_vector without offset
164
vec = vec.mapIndexed { index, i ->
165
val new_idx =(index + want_offs) % vec.size
166
lst.slice(1 .. lst.lastIndex)[new_idx]}
167
-
168
context.tinyNode.update_progress(vec, "me")
169
170
return Bipf.encode(Bipf.mkList(lst))
171
+ want_offs = (want_offs + i + 1) % context.tinyGoset.keys.size
172
+ want_is_valid = true
173
return null
174
175
0 commit comments