Skip to content

1.1.0

Choose a tag to compare

@highesttt highesttt released this 15 Apr 23:21
· 253 commits to main since this release
1.1.0
2680b57

πŸ”„οΈ Changelog (1.0.2 β†’ 1.1.0)

✨New Features

  • Letter Sealing OFF (LSOFF) support β€” login and messaging for accounts without E2EE enabled, with automatic plain text fallback
  • Audio messages β€” send and receive voice notes / audio files (E2EE and plain)
  • Video & file receive β€” plain media receive with correct OBS routing
  • Location messages β€” receive and display LINE location shares with Google Maps links
  • Contact sharing β€” LINE contacts shown as notices; device contacts bridged as vCard files
  • Call notifications β€” voice/video call events displayed with duration or missed status
  • Message unsending β€” unsend messages from Matrix (with LINE's 24h limit and proper error)
  • Link previews β€” text messages include URL previews via LINE's GetPageInfo
  • Custom display names β€” 1:1 chats use the contact's custom display name
  • Media flow detection β€” check determineMediaMessageFlow before choosing E2EE vs plain upload path
  • File upload ZIP fallback β€” files rejected by LINE are automatically retried wrapped in a ZIP archive (matching Chrome Extension behavior)
  • Additional audio/video MIME types β€” files sent as MsgFile with audio/video/image MIME are remapped to the correct LINE content type

πŸ› Bug Fixes

  • First-login E2EE key extraction β€” fixed crash when fetching E2EE keys on initial login
  • Session recovery β€” bridge auto-reconnects when a user logs into the real LINE Chrome Extension
  • SSE long-polling β€” use timeout-free HTTP client to prevent premature disconnects; context-based cancellation for clean shutdown
  • OBS download reliability β€” retry on 404 and 202 (media still processing); graceful placeholders on failure
  • Contact name updates β€” live contact renames propagate via SSE events with a TTL cache
  • E2EE error matching β€” IsNoUsableE2EEGroupKey no longer false-matches token logout errors
  • Video thumbnails β€” fixed double-close on temp file in extractVideoThumbnail
  • Plain media routing β€” correct OBS type (m endpoint) for video/file plain receive
  • Media captions β€” reject unsupported captions; use correct filename from Matrix
  • Avatar sync β€” sync avatars for LINE business/official accounts; mark DM rooms correctly
  • Registration YAML β€” fixed badly generated registration.yaml from docker-run script

πŸ’‘ Refactoring

  • Handler separation β€” message conversion split into pkg/connector/handlers/ with individual files per content type (call, image, video, audio, file, sticker, location, contact, text)
  • WaitGroups β€” all goroutines (sync, poll, reactions, chat updates) tracked with sync.WaitGroup; Disconnect() waits for clean shutdown
  • SSE context cancellation β€” ListenSSE accepts context.Context for proper cancellation instead of select/default polling
  • Login key extraction β€” deeply-nested E2EE key chain logic extracted into fetchLoginKeys with early returns
  • SSE client reuse β€” dedicated http.Client reused across SSE reconnects
  • Thumbnail encryption β€” extracted encryptThumbnail helper to remove duplication

πŸ€– Chores

  • Bump Chrome Extension version from 3.7.1 to 3.7.2
  • Docker build caching improvements