Skip to content

Linger v0.5.1

Choose a tag to compare

@github-actions github-actions released this 19 Oct 17:29
db46d31

Linger 0.5.1: voice on your phone, deleting your account, and devices that agree

The Android app joins voice rooms now, and a locked phone stays in the call.
Anybody can delete their own account from inside the app. Your computer and
your phone stop contradicting each other: reading on one clears the other,
and what one says about where you are no longer overwrites the other. Voice
recovers in seconds when the network changes. Shared videos lose the place
they were filmed. And on Linux, a long sleep no longer leaves Linger stuck
signing back in, and dropping a file on the message box works again.

Everyone: update the app. Phone voice, the voice fixes and the Linux fixes
are in the app.

Hosts: update the server with ./update.sh, as usual. It changes the
database
(one change, 0025), so going back to 0.5.0 means restoring the
copy update.sh makes. Nothing in compose.yaml or .env changes. Deleting
an account, reading on one device clearing the others, and two devices
showing as one all need the server updated. See
For hosts.

The highlights

  • Voice rooms on the Android app (#429). Join from a room, talk with the
    phone's microphone or a headset, and lock the phone without leaving the
    call.
  • Delete your own account (#650), from either app, and choose whether
    what you wrote goes with it.
  • Read on one device, and it's read on the others (#647), even the ones
    that stayed open.
  • One person on two devices is shown as one (#653), and a short network
    drop no longer shows you offline (#654).
  • Voice comes back in seconds after a network change (#656), and a lost
    packet is rebuilt rather than guessed at (#655).
  • Videos and sound files keep no trace of where they were made (#651).
  • Linux: no more "Signing you back in…" for a quarter of an hour after a
    long sleep (#646), and dropping a file on the message box attaches it again
    (#673).

Voice on your phone

  • Join from a room (#429), the same way as on a computer: the line under
    the room's name says who's talking, with Join. Android asks for the
    microphone the first time, unless it already did for a voice message.
  • Mute, Deafen and Leave are a thumb's size, in the room's line and in the
    voice bar at the bottom of the list.
  • Your voice follows you. A conversation, Media or Search covers the list
    on a phone, so every other screen shows one line under its title, "In voice
    in #general", with your controls. Tap its words to go back to the room. In
    another room it takes the place of that room's own line: to talk there
    instead, leave, then join.
  • Lock the phone and stay in the call. While you're in voice, Android
    shows one silent bar, "In voice in #general", with Mute and Leave.
    It's the only notification Linger ever shows: it makes no sound, says
    nothing about messages, and goes when you leave. The first time you join,
    Android asks whether Linger may send notifications. That's for this bar.
    Say no and the call still keeps going with the phone locked; you just
    don't get the bar.
  • The phone does the cleaning up. Phone voice uses the phone's own echo
    cancelling and noise suppression, so a phone on speaker doesn't send the
    room back to itself. Sound comes out of the speaker, or a headset when one
    is connected.
  • No push-to-talk on a phone: Mute is how you go quiet. A person's volume
    goes up to 100% on a phone, not 200%, because the phone's player goes no
    louder than as sent.
  • Phone voice needs no server update, and people on computers hear a phone
    like anybody else. The iPhone gets voice with the rest of the iPhone app.

Your account

  • Delete your own account (#650): Settings → Account & App → Delete
    Your Account
    . It asks for your password, offers to download your copy
    first, and has one box: Also delete everything I wrote, off to start.
    • Box off: your messages, files, reactions and poll votes stay, without
      your name. They say Deleted account.
    • Box on: they go, the way a deleted message does. A closed poll keeps
      how it came out.
    • Either way your profile, status, settings and sign-ins go at once, and
      nobody new can take your username, so nobody inherits your old mentions.
      Group DMs say you left; a one-to-one DM stays your friend's.
  • The host can't delete their own account. Settings says why.
  • The host can delete a removed person's account: Settings → Hosting →
    People → Removed → Delete account, with the same box. Only the host,
    not a co-host.
  • On a server that hasn't updated, Settings says it needs an update instead of
    offering a delete it would refuse.

Two devices at once

  • Reading on one device clears it on the others (#647). Read on your phone
    and the desktop left open stops showing those rooms as new, and the other
    way round. Only your own devices are told, and only where you've read to,
    never a count. This needs both the app and the server updated.
  • One person on two devices is shown as one (#653). Before, whichever
    device spoke last was what everybody saw: idle while you typed on your
    phone, or around after the phone closed. Now away on any device is away; in
    a room on any device is in that room; and you're idle only when every
    device is. I'm back on any device ends away everywhere.
  • A short network drop no longer shows you offline (#654), the phone
    moving from Wi-Fi to mobile data, say. Nobody sees anything unless you're
    gone for more than 5 seconds, and your away message stays.

Voice

  • Back in seconds after the network changes (#656). When the network
    under a call changed, the room went quiet for about half a minute. Now the
    app asks the server for a fresh connection about 5 seconds after it stops
    hearing anything, and straight away when its own connection comes back.
  • A lost packet is rebuilt, not guessed at (#655). Each voice packet has
    always carried a rougher copy of the one before. The app now uses that copy
    to rebuild a lost one, so a patchy line sounds closer to the real thing.
    It works with friends on any version.

Files

  • Videos and sound files keep no trace of where they were made (#651). A
    phone writes the place a video was filmed inside the file. The server now
    copies every video and sound file into a fresh one without its tags, the
    way it already stripped photos. Nothing is re-encoded, so it's quick, and a
    portrait video stays upright. Shared songs lose their title, artist and
    cover picture too.
  • A portrait phone video is the right shape (#658): the server describes
    it as taller than wide, the way it plays.
  • Both are on the server, and only for files shared from now on.

Linux

  • No more "Signing you back in…" after a long sleep (#646). After an
    hour or more asleep, Linger sat on it for about 15 minutes. The window's
    network connection to the server had gone dead in the sleep, and every
    try went down it. Linger now makes a fresh connection for each try.
  • Dropping a file on the message box attaches it again (#673). A recent
    WebKitGTK (the engine Linger draws with on Linux) hands a page the files
    dropped on it as nothing. Linger now takes the drop itself and gives the
    message box exactly the files you dropped. A folder says to drop the files
    in it instead, and anything over 500 MB says it's too big. Windows is
    unchanged.
  • No sideways scroll bar under an empty message box (#672).

Fixes

  • Emoji shortcodes work while editing a message (#666): :smiley: and the
    list as you type, as in the message box.

Under the hood

  • The signing keys live in a locked-down place (#652): only a release
    from main can reach them. Nothing changes for you.
  • The website is linger.im, and Windows' Apps &
    features and the Linux packages link to it.
  • Which apps and servers work together is written down (#315, PROTOCOL
    §9): until 1.0, every change works both ways wherever it can.

Known issues

  • Quitting Linger shows you offline about 5 seconds late (#654): Quit
    doesn't say goodbye yet, so the server waits out a short drop first.
  • Files shared before this release keep their tags, and portrait videos
    shared before it keep their sideways size.
  • Phone voice is new. It was tested on Android emulators against a real
    server and in browser tests against a real voice connection, and a 5-person
    call has worked, but tell us how it sounds and how the call bar behaves on
    your phone.

Older apps and servers

Nothing stops working with an older app or server (PROTOCOL §9).

  • A 0.5.0 app on a 0.5.1 server works as before. It shows a deleted
    account's messages as "someone", and doesn't hear reading on your other
    devices until it reconnects.
  • A 0.5.1 app on an older server works too. Deleting an account says the
    server needs an update, reading on one device clears the others only after
    a reconnect, and two devices are shown as before. Phone voice works with
    any server from 0.4.1.

For hosts: updating the server

Server image: ghcr.io/itsmattguenther/linger:0.5.1 (x86-64 only), also
tagged 0.5 and latest.

What changes for you

  • The database changes once (0025, deleted accounts). It runs by itself
    the first time 0.5.1 starts. update.sh saves the database just before, and
    that copy is how you'd go back: 0.5.0 won't start on a database 0.5.1 has
    changed.
  • Videos and sound files need ffmpeg (#651). The published image has it,
    so nothing changes if you run the image. A server built from source without
    ffmpeg now refuses videos and sound files, and says the host needs to
    install it.
  • Nothing in compose.yaml or .env changes, and there are no new
    settings.
  • What needs the server updated, not just the app: deleting an account,
    reading on one device clearing the others, two devices shown as one, a short
    drop not showing offline, and videos losing their location.

The steps

On the server, in your linger folder:

cd ~/linger
./update.sh

(Use sudo ./update.sh if you type sudo before docker commands.) It
downloads 0.5.1 while the server keeps running, stops it for a few seconds to
save the database into backups/, then starts everything again and prints the
version before and after. If 0.5.1 doesn't start, it prints the commands that
put 0.5.0 back.

Check it worked, with your own address in place of linger.example.com:

curl -f https://linger.example.com/api/v1/health

It prints {"ok":true,"version":"0.5.1"}.

Going back to 0.5.0 means restoring the copy update.sh saved into
backups/ just before 0.5.1 started, and anything posted since is lost. The
0.5.0 notes and the host guide's
Restoring say how.

Install or update

Use the in-app update: Update… at the foot of the list, or Settings →
Account & App → Updates. Windows users should keep the same installer format
(.exe or .msi) when upgrading. Linux packages are .AppImage, .deb and
.rpm; on Omarchy or Arch, Linger updates with your system (Update in the
Omarchy menu, or sudo pacman -Syu). Windows installers are updater-signed,
not Authenticode-signed; SmartScreen may still warn about an unfamiliar app.

On Android, download Linger_0.5.1_android-arm64.apk from this release on
the phone and install it over the old one. You stay signed in. A first install
is step by step in the 0.4.8 notes.

New to Linger? Which file do I want?

Your computer Download the file ending in
Windows -setup.exe
Debian, Ubuntu or Mint .deb
Fedora, RHEL or openSUSE .rpm
Any other Linux .AppImage — make it executable and run it
macOS Not built yet — see decisions.md
Android phone _android-arm64.apk — download it on the phone
iPhone Not yet

The .msi is for companies rolling it out to many machines at once.
If you are not sure, you want the .exe.

The .sig files and latest.json are how an installed copy checks
that an update is genuine. You do not need to download them.

Windows will warn you. You get "Windows protected your PC", and
Run anyway is behind the small More info link. That is Windows
saying the installer has not been through a paid signing process. It
has not — that is a
known decision,
not a broken download.

Android will ask before installing. The phone says it won't
install apps from your browser until you allow it: tap Settings,
turn on Allow from this source, and go back. That is Android's
rule for any app that isn't from the Play Store. The phone app
doesn't update itself: install each new one from its release page,
right over the old one, and you stay signed in.

Checks on installed clients

Record OS, package type, previous and new version, and headset or microphone
with any failure. Use made-up messages, and keep private conversations out of
screenshots.

  1. Phone voice on an Android phone, with somebody on a computer in the
    room: join, talk both ways, on speaker and with a headset (#429).
  2. The call bar: lock the phone for ten minutes in voice, then use the
    bar's Mute and Leave (#429).
  3. A network change mid-call, on a computer (Wi-Fi to wired or a phone
    hotspot) and on the phone (Wi-Fi to mobile data): the voice comes back
    within seconds (#656).
  4. Delete an account on a test account, once with the box off and once
    on, and as the host for somebody removed (#650).
  5. Two devices: read on the phone with the desktop open, and the room
    stops looking new there (#647). Go away on one, open a room on the other:
    still away (#653).
  6. Linux after a long sleep: sleep an hour or more, wake: signed in within
    seconds (#646).
  7. Drop a file on the message box on Omarchy, from the file manager: it
    attaches. A folder says to drop the files in it (#673).
  8. A video filmed on a phone with location on: download it from Linger and
    check it has no location (exiftool), and a portrait one plays upright
    (#651, #658).
  9. Windows: Apps & features shows linger.im for Linger.