Skip to content

Add messaging, media, desktop, and localization features - #12

Open
WindyWin wants to merge 130 commits into
MidnightTale:masterfrom
WindyWin:upstream-feature-integration
Open

WindyWin wants to merge 130 commits into
MidnightTale:masterfrom
WindyWin:upstream-feature-integration

Conversation

@WindyWin

@WindyWin WindyWin commented Oct 26, 2026 •

Copy link
Copy Markdown

Screenshots

Read position

Actual GTK screenshot using a fixture conversation (no LINE account data).

Read position in chat history

Sticker library

Sticker picker

PNG import review

PNG import review

Sticker image optimization

Sticker image optimization

Message readers

Names and avatars for message readers

Reply from a desktop notification

Desktop notification reply composer

Recent feature additions

  • Add conversation settings, reader names and avatars, improved mention picking, and per-chat composer drafts.
  • Show loading, retry, and end states in history. Keep the viewport stable while paging or jumping, and restore quoted messages from cached history.
  • Make message text selectable, open links directly, copy full images, and navigate attachment previews from chat and Shared Media.
  • Add desktop notification replies and highlight group replies to your messages.
  • Support closing LINE polls, retry failed decryption, and track uncertain sends and upload progress.
  • Extend the Deno test permission list for the LEGY transport setting.
  • Add a custom sticker library with pack and item management, importing PNGs, optimizing sticker images, and sending library stickers.
  • Add message search and bounded per-chat history storage, with configurable cache limits and encrypted cache support through Secret Service when available.
  • Track the last read position per account and chat, and restore that position when opening chat history.
  • Add Markdown attachment preview and improve media composition and previews.
  • Update protocol RPC/event integration, translations, and build configuration for these features.

Summary

Add the fork's messaging, media, desktop, localization, and recovery features to upstream. This integrates the existing feature history since 4b85a0d (release 0.1.2), including contributions from shirafukayayoi with original authorship preserved, plus a documented feature/change list.

Added features

  • Email/password login, phone verification, Secret Service storage, and startup automatic sign-in.
  • Vietnamese and Japanese translations and font support; Vietnamese is currently the default.
  • Quoted replies and source navigation, group mentions and notifications, contact profiles, reactions, emoji input, and received inline LINE emoji.
  • Unsend, whole-message copying, partial-text copy dialog, and attachment draft previews.
  • Category filters, hidden/pinned chats, blocking, global/per-contact read pauses, and explicit mark-read actions.
  • Group sender names, persistent membership notices, and call-history cards.
  • Albums, original downloads, shared media browsing, video playback/saving, sticker previews, and user-triggered link previews.
  • Desktop autostart with an optional background launch.

Reliability, protocol, and packaging

  • Restore cached chats at startup and during chat switches, refresh deltas, patch individual messages, and load older history within a bounded message window.
  • Reconnect after sleep/network loss; merge refreshed messages without duplicates and synchronize unread state from other devices.
  • Expand matching Rust/TypeScript RPCs and events, enforce account/session scoping, and fix decryption and original-media validation.
  • Download protocol dependencies from checksum-pinned GitHub archives at build time. Keep source pins, the manifest, and lockfile committed; ignore downloaded library copies. Reuse verified local sources or cached archives for offline builds. Application-owned call patches remain committed.
  • Update Arch/local packaging, Flatpak configuration, translations, and CI/build smoke checks.

The full feature list, limits, and validation are in docs/upstream-changes.md.

Validation

  • All five jobs passed on the fork at this PR's head commit cc2a457, including Rust, protocol, Arch packaging, Ubuntu packaging, and Flatpak. GitHub Actions run
  • Local Rust formatting, Clippy, and the locked release build passed. The Rust suite passed 187 tests, with 31 display or environment fixtures ignored by the standard run.
  • Both GTK file-preview fixtures and the image-viewer copy fixture passed in an isolated Wayland session.
  • The Deno check passed all 390 tests. The offline sidecar built and passed the empty-session startup and ping smoke test.
  • All six Python dependency-preparation tests passed and the vendor check verified 244 files.

# Conflicts:
#	protocol/src/commands.ts
#	protocol/tests/commands_preview_test.ts
#	src/ui/mod.rs
#	src/ui/shell.rs
WindyWin and others added 30 commits October 28, 2026 22:01
…keys

QR and password login now import the encrypted keychain before messaging is
enabled, and fail with a translated message when it is missing. Group sends
rejected with E2EE_RECREATE_GROUP_KEY reuse a key another member already
rotated, or register a new one only when every member has a key. Decryption
retries key fetches for incoming messages so they publish once and in order.
Poll flex messages render as an interactive card that loads results and
submits votes through new poll_get/poll_vote sidecar requests. A poll can be
created from the conversation menu (question, options, multiple choice,
anonymous votes, member-added options, close date). Generic "action" labels in
LINE templates now fall back to the text inside the tapped box.
The emoji pack meta.json carries no version, but the reaction must name one
or other clients cannot resolve the image. Use the owned product's
latestVersion when meta has none, and log received custom emoji reactions to
compare against the official client's wire shape.
Owned packs get their icon in the picker tabs, with the name kept as tooltip
and accessible label. Packs with the most recently used stickers come first,
and the scrollbars no longer overlay and steal clicks from stickers or tabs.
*Total -- 494.14kb -> 421.00kb (14.8%)

/docs/screenshots/sticker-library/picker-light.png -- 40.28kb -> 32.40kb (19.58%)
/docs/screenshots/sticker-library/pack-context-menu-light.png -- 10.68kb -> 8.67kb (18.77%)
/docs/screenshots/sticker-library/image-context-menu-light.png -- 6.88kb -> 5.61kb (18.48%)
/docs/screenshots/sticker-library/tabs-light.png -- 33.04kb -> 27.21kb (17.64%)
/docs/screenshots/sticker-library/creator-pack-light.png -- 37.59kb -> 31.43kb (16.39%)
/docs/screenshots/read-position-dark.png -- 78.01kb -> 65.31kb (16.28%)
/docs/screenshots/sticker-library/animated-grid-light.png -- 21.00kb -> 17.66kb (15.9%)
/docs/screenshots/sticker-library/png-review-light.png -- 46.10kb -> 39.24kb (14.88%)
/docs/screenshots/sticker-library/png-review-dark.png -- 46.02kb -> 39.49kb (14.18%)
/docs/screenshots/sticker-library/store-preview-light.png -- 33.34kb -> 29.01kb (13%)
/docs/screenshots/sticker-library/optimize-animation-dark.png -- 70.90kb -> 62.51kb (11.83%)
/docs/screenshots/sticker-library/optimize-animation-light.png -- 70.30kb -> 62.46kb (11.16%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
[ImgBot] Optimize images
Show group members and pending invitations, and let users invite friends from conversation settings. Retry failed encrypted group messages and update recovered rows without duplicating unread or cursor changes.

Restrict preview fetching by URL and public address policy, and refresh translations and feature documentation.
Group read ranges now resolve reader profiles and pictures in the sidecar,
and a reader button on sent messages opens a dialog listing them.
Text, cursor, mentions, reply target and attachments are saved per chat and
restored on return. The mention picker keeps its selection while filtering,
scrolls to it, and shows loading and retry states.
…dline

LINE's encrypted gateway (gf.line.naver.jp/enc) has answered every request with an empty 404 since 2026-11-18, so linejs now uses plain /S4 and /SYNC4 on legy.line-apps.com. LINE_GTK_LEGY_ENCRYPTED=auto|true restores the encrypted path. OBS uploads get a 20 minute deadline; other requests keep the short one.
…es with file size

Upload progress events now carry the request id, so the optimistic bubble shows a percentage and then Sent. The sidecar deadline for audio and media sends grows with the file size instead of failing large uploads at 30 seconds.
Consecutive own messages with the same readers now show the reader avatars only under the newest one. A newer unread message keeps the older readers visible.
Chat rows, friends, the profile header, mention picker, message sender avatars and the profile dialog use a shared avatar wrapper. It draws the name's initials until the picture loads, and updates when the name arrives.
Pages that arrive while the reader is still scrolling are held until the movement ends, GTK keeps its own scroll anchor across model changes, and paging is rearmed only by scrolling toward an edge. Jumping to a quoted message shows a loading toast and ends cleanly offline. Adds frame-by-frame viewport fixtures and scripts/test-gtk-fixtures.sh to run them under a virtual compositor.
Image messages get a Copy image entry that copies the full-size picture, never the chat thumbnail. The viewer has its own context menu and Ctrl+C, bound to the open file.
Bubble text can be dragged and copied with Ctrl+C. Bare http(s) URLs are styled and open in the browser, except inside code fences, HTTP tool commands, credentialed URLs, or mention ranges. Messages with custom LINE emoji use the same selection and link behavior.
When a reply's original is outside the loaded page, the quote preview is resolved from the account's saved history, and only when something is missing.
Notifications gain a Reply action that opens a compact composer without changing the active chat or its draft. Replies go through the shared send path with account, session, source and block checks, and an unsent source lets the user choose a plain message. Notification bursts are batched and keep the latest previews.
close() follows LINE's LIFF GET endpoint and reads the authoritative closed state. LIFF requests now fail with session_changed if the client was replaced while the token was being issued.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants