Skip to content

LLeMbas for Android 1.0.0-beta.17

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:18
· 0 commits to main since this release

LLeMbas for Android 1.0.0-beta.17

How the app connects to an instance, brought in line with the other LLeMbas clients. Fixes only.

Fixed

  • An instance that signed the phone out is noticed. When an instance refuses the app's token
    (it was revoked there, or it expired), that instance -- not whichever happens to be in use --
    is marked signed out, nothing more is asked with the dead token, and a page offers Sign in
    again
    in one step. Chats being written, the settings kept for the instance and every other
    instance stay as they were. Before, each screen showed the server's refusal and the app went on
    as if signed in. A "not allowed" (403) is still just the server's sentence, and a refusal
    passed on from a provider behind the instance signs nobody out.
  • One rule for the address. HTTPS://Example.org/, example.org/chat?x=1 and
    example.org:8443/ are read as the other LLeMbas clients read them: the scheme in any case,
    the host in lower case, the path dropped. An http:// address is answered where it is typed
    -- this app needs https -- instead of failing later with a library's error.
  • The address you typed is the one kept. A new sign-in stores the address as it was typed
    (read by the rule above), not the one the instance says of itself, and the sign-in itself goes
    only to that address: an instance whose proxy makes it name another host says so in words.
    Instances already on the phone are untouched -- same entry, same token, same settings, same
    notifications -- and signing in again to one of them, by either address, refreshes that entry
    rather than adding a second one.
  • An instance can say the app is too old. Where an instance names the oldest version of
    the app it works with (min_clients in its discovery document) and this one is older, the app
    says so with both versions and does not go on.
  • Each failure says what it is. Cannot be reached, did not answer in time, a certificate the
    phone does not trust (with where to install the CA), no LLeMbas instance at the address, "the
    server answered 502", an instance too old, an app too old: one sentence each. A server in
    trouble is no longer "not a LLeMbas instance", and another service is no longer "an older
    LLeMbas".
  • A sign-in ends by its real reason. Only an expired code is "the code expired"; a server
    that restarts or a network that drops while you approve in the browser no longer ends the
    sign-in; too many sign-ins is said in the server's words. Cancelling a sign-in no longer
    leaves an error line under the address.
  • A dead connection is noticed. A stream that says nothing for 45 seconds (the instance
    sends a keepalive every 15) is opened again, instead of being followed for ever after the
    phone changed network.
  • One reconnect schedule. Streams are opened again after 1 second doubling to 60, each
    jittered by a fifth, and quickly again only after a connection held for half a minute. "Too
    many requests" (429) waits as long as the instance asks.

Changed

  • The app names itself. Every request carries User-Agent: llembas-android/<version>, and
    the sign-in sends the same string, so an instance's list of devices shows which app and
    version signed in.