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.
20 lines
916 B
JavaScript
20 lines
916 B
JavaScript
// Builds src/renderer/src/emoji-data.json — a compact [emoji, shortnames[]]
|
|
// list in picker order — from emoji-datasource (the shortcode set Signal and
|
|
// Slack use). Run with `npm run gen:emoji` after bumping emoji-datasource.
|
|
import { readFileSync, writeFileSync } from 'node:fs'
|
|
import { createRequire } from 'node:module'
|
|
|
|
const require = createRequire(import.meta.url)
|
|
const source = JSON.parse(readFileSync(require.resolve('emoji-datasource/emoji.json'), 'utf8'))
|
|
|
|
const toChar = (unified) => String.fromCodePoint(...unified.split('-').map((h) => parseInt(h, 16)))
|
|
|
|
const data = source
|
|
.filter((e) => e.has_img_apple && !e.obsoleted_by)
|
|
.sort((a, b) => a.sort_order - b.sort_order)
|
|
.map((e) => [toChar(e.unified), e.short_names])
|
|
|
|
const out = new URL('../src/renderer/src/emoji-data.json', import.meta.url)
|
|
writeFileSync(out, JSON.stringify(data) + '\n')
|
|
console.log(`wrote ${data.length} emoji`)
|