v0.2.0: bubble for Android 0.2.0 — chat search, swipe for unread, faster chat opening

Desktop:
- Search lists chats whose own name matches first, so a named group
  isn't pushed out of the top 8 by chats that merely include a member.

Android (Rabbit R1) app, 0.2.0:
- Pull the chat list past its top for a search box (name, person,
  number, then group members; archived chats too; Back clears it).
- Swipe right to left marks a chat unread / read over a magenta band;
  left to right still archives (SwipeActions replaces SwipeArchive).
- Google Voice chats don't offer voice notes in the paperclip bubble.
- Chats open with their newest 60 messages, then the full history;
  marking read (and the Google Voice network call) waits until they're
  on screen. Cached pictures show at once, and one slow download no
  longer blocks the other images. Fixed a contacts reload race.
- Sandbox data gains filler chats, a named group and a 4,000-message chat.

Also: the Android app, Google Voice support, media, export, emoji and
the other work since the first commit, and a CLAUDE.md carrying the
privacy rule.
This commit is contained in:
2026-11-06 02:19:56 -08:00
parent a2b8f764db
commit 8c84feaa91
114 changed files with 12987 additions and 379 deletions
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
{"version_name": "0.2.0", "version_code": 2, "package": "me.teafry.voipmessages"}
+91
View File
@@ -0,0 +1,91 @@
#!/usr/bin/env python3
"""Add a contact to an Evolution Data Server address book (which syncs it on,
e.g. to Nextcloud via CardDAV).
eds-add-contact.py books -> JSON {"books": [...], "default": uid or null}
eds-add-contact.py add -> reads JSON {first, last, org, number, book?}
on stdin, prints JSON {"uid": ...}
The default book is the one GNOME Contacts uses for new contacts (folks'
primary store), else EDS's own default address book.
"""
import json
import sys
import gi
gi.require_version("EDataServer", "1.2")
gi.require_version("EBookContacts", "1.2")
gi.require_version("EBook", "1.2")
from gi.repository import EBook, EBookContacts, EDataServer as EDS, Gio # noqa: E402
# Server-generated or automatic books nobody adds contacts to by hand.
SKIP_NAMES = {"accounts", "recently contacted", "recent"}
def esc(v):
return v.replace("\\", "\\\\").replace(";", "\\;").replace(",", "\\,").replace("\n", "\\n")
def default_uid(reg):
try:
if "org.freedesktop.folks" in Gio.Settings.list_schemas():
store = Gio.Settings.new("org.freedesktop.folks").get_string("primary-store")
if store.startswith("eds:"):
return store[4:]
except Exception:
pass
src = reg.ref_default_address_book()
return src.get_uid() if src else None
def books(reg):
out = []
for s in reg.list_enabled(EDS.SOURCE_EXTENSION_ADDRESS_BOOK):
if s.get_display_name().lower() in SKIP_NAMES:
continue
ext = s.get_extension(EDS.SOURCE_EXTENSION_ADDRESS_BOOK)
if ext.get_backend_name() == "ldap":
continue
parent = reg.ref_source(s.get_parent()) if s.get_parent() else None
out.append({
"uid": s.get_uid(),
"name": s.get_display_name(),
"account": parent.get_display_name() if parent else "",
})
return out
def add(reg, req):
uid = req.get("book") or default_uid(reg)
source = reg.ref_source(uid) if uid else None
if source is None:
raise SystemExit("No address book to add the contact to.")
client = EBook.BookClient.connect_sync(source, 30, None)
if client.is_readonly():
raise SystemExit(f"The address book \"{source.get_display_name()}\" is read-only.")
first, last, org = (req.get(k, "").strip() for k in ("first", "last", "org"))
full = " ".join(p for p in (first, last) if p) or org or req["number"]
lines = ["BEGIN:VCARD", "VERSION:3.0", f"N:{esc(last)};{esc(first)};;;", f"FN:{esc(full)}"]
if org:
lines.append(f"ORG:{esc(org)}")
lines += [f"TEL;TYPE=CELL:{req['number']}", "END:VCARD"]
contact = EBookContacts.Contact.new_from_vcard("\r\n".join(lines))
ok, new_uid = client.add_contact_sync(contact, EBookContacts.BookOperationFlags.NONE, None)
json.dump({"uid": new_uid, "book": source.get_display_name()}, sys.stdout)
def main():
reg = EDS.SourceRegistry.new_sync(None)
cmd = sys.argv[1] if len(sys.argv) > 1 else "books"
if cmd == "books":
json.dump({"books": books(reg), "default": default_uid(reg)}, sys.stdout)
elif cmd == "add":
add(reg, json.load(sys.stdin))
else:
raise SystemExit(f"unknown command {cmd}")
main()
+54
View File
@@ -0,0 +1,54 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#eef6ff"/>
<stop offset="1" stop-color="#dcebfb"/>
</linearGradient>
<linearGradient id="tub" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffb8c6"/>
<stop offset="1" stop-color="#f59fb3"/>
</linearGradient>
</defs>
<rect x="32" y="32" width="448" height="448" rx="104" fill="url(#bg)"/>
<!-- ground shadow -->
<ellipse cx="270" cy="430" rx="190" ry="16" fill="#c8dcf1"/>
<!-- handles + frame rail (behind the tub) -->
<path d="M64 236 L382 380" stroke="#b49ad8" stroke-width="16" stroke-linecap="round" fill="none"/>
<path d="M64 236 L96 250" stroke="#7f8fb8" stroke-width="22" stroke-linecap="round"/>
<!-- back leg -->
<path d="M196 312 L184 418 M166 420 L204 420" stroke="#b49ad8" stroke-width="14" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
<!-- wheel -->
<circle cx="382" cy="376" r="54" fill="#7f8fb8"/>
<circle cx="382" cy="376" r="32" fill="#cfe9dd"/>
<circle cx="382" cy="376" r="11" fill="#7f8fb8"/>
<!-- tub -->
<path d="M100 150 L444 138 Q458 138 453 151 L398 318 Q394 330 381 330 L186 332 Q174 332 169 321 L96 162 Q92 150 100 150 Z" fill="url(#tub)"/>
<!-- rim -->
<path d="M96 150 L450 137" stroke="#ee8fa6" stroke-width="18" stroke-linecap="round"/>
<!-- little highlight -->
<path d="M134 176 L150 212" stroke="#ffe0e8" stroke-width="8" stroke-linecap="round" opacity="0.8"/>
<!-- "VOIP" scrawled in white marker: uneven sizes, bouncy baseline, wobbly strokes -->
<g fill="none" stroke="#ffffff" stroke-width="13" stroke-linecap="round" stroke-linejoin="round" transform="rotate(-7 280 250)">
<!-- V: big, leaning, with a flick at the end -->
<path d="M142 198 C150 228 164 262 181 294 C190 262 202 230 217 200 C220 194 224 191 229 190" transform="rotate(-3 180 245)"/>
<!-- O: doesn't quite close, overshoots at the top -->
<path d="M285 206 C262 196 242 218 243 249 C244 281 262 298 282 293 C303 288 309 262 307 239 C305 216 293 202 274 207"/>
<!-- I: tall stem, a little crooked -->
<path d="M333 199 C336 230 332 263 336 296"/>
<!-- P: long stem, lopsided bowl -->
<path d="M366 203 C368 235 365 268 368 300"/>
<path d="M367 208 C385 192 418 198 416 225 C414 250 388 255 369 246"/>
<!-- marker pause blobs where strokes start -->
<g fill="#ffffff" stroke="none">
<circle cx="142" cy="198" r="8"/>
<circle cx="333" cy="199" r="7.5"/>
<circle cx="366" cy="203" r="7.5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 222 KiB

+49 -8
View File
@@ -1,13 +1,54 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#3a78f2"/>
<stop offset="1" stop-color="#2257d6"/>
<linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#fff6e8"/>
<stop offset="1" stop-color="#f6e2c6"/>
</linearGradient>
<linearGradient id="tub" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#f2622f"/>
<stop offset="1" stop-color="#d9481f"/>
</linearGradient>
</defs>
<rect x="32" y="32" width="448" height="448" rx="104" fill="url(#g)"/>
<path d="M256 120c-86 0-150 55-150 124 0 38 19 71 50 94l-12 58 60-32c16 4 34 6 52 6 86 0 150-55 150-126S342 120 256 120z" fill="#fff"/>
<circle cx="196" cy="246" r="18" fill="#2c6bed"/>
<circle cx="256" cy="246" r="18" fill="#2c6bed"/>
<circle cx="316" cy="246" r="18" fill="#2c6bed"/>
<rect x="32" y="32" width="448" height="448" rx="104" fill="url(#bg)"/>
<!-- ground shadow -->
<ellipse cx="270" cy="430" rx="190" ry="16" fill="#e3c9a6"/>
<!-- handles + frame rail (behind the tub) -->
<path d="M64 236 L382 380" stroke="#8e2b12" stroke-width="16" stroke-linecap="round" fill="none"/>
<path d="M64 236 L96 250" stroke="#2f2320" stroke-width="22" stroke-linecap="round"/>
<!-- back leg -->
<path d="M196 312 L184 418 M166 420 L204 420" stroke="#8e2b12" stroke-width="14" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
<!-- wheel -->
<circle cx="382" cy="376" r="54" fill="#2f2320"/>
<circle cx="382" cy="376" r="32" fill="#9a8c85"/>
<circle cx="382" cy="376" r="11" fill="#2f2320"/>
<!-- tub -->
<path d="M100 150 L444 138 Q458 138 453 151 L398 318 Q394 330 381 330 L186 332 Q174 332 169 321 L96 162 Q92 150 100 150 Z" fill="url(#tub)"/>
<!-- rim -->
<path d="M96 150 L450 137" stroke="#b8391b" stroke-width="18" stroke-linecap="round"/>
<!-- little highlight -->
<path d="M134 176 L150 212" stroke="#ff8c5a" stroke-width="8" stroke-linecap="round" opacity="0.8"/>
<!-- "VOIP" scrawled in white marker: uneven sizes, bouncy baseline, wobbly strokes -->
<g fill="none" stroke="#fffdf8" stroke-width="13" stroke-linecap="round" stroke-linejoin="round" transform="rotate(-7 280 250)">
<!-- V: big, leaning, with a flick at the end -->
<path d="M142 198 C150 228 164 262 181 294 C190 262 202 230 217 200 C220 194 224 191 229 190" transform="rotate(-3 180 245)"/>
<!-- O: doesn't quite close, overshoots at the top -->
<path d="M285 206 C262 196 242 218 243 249 C244 281 262 298 282 293 C303 288 309 262 307 239 C305 216 293 202 274 207"/>
<!-- I: tall stem, a little crooked -->
<path d="M333 199 C336 230 332 263 336 296"/>
<!-- P: long stem, lopsided bowl -->
<path d="M366 203 C368 235 365 268 368 300"/>
<path d="M367 208 C385 192 418 198 416 225 C414 250 388 255 369 246"/>
<!-- marker pause blobs where strokes start -->
<g fill="#fffdf8" stroke="none">
<circle cx="142" cy="198" r="8"/>
<circle cx="333" cy="199" r="7.5"/>
<circle cx="366" cy="203" r="7.5"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 2.6 KiB