v0.9.1: bubble for Android 0.7.6 — pictures have the bubble's round corners; no "MMS Sent"
Android: a picture in a chat is clipped to the bubble's 30 dp corner, sent and received. Checked on the Rabbit with the dev app (the sandbox now has a made-up picture each way). Both: voip.ms gives a picture we sent with no words the text "MMS Sent", like the "MMS Received" already dropped; that goes too, from new messages and (once) from ones already stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -6,7 +6,7 @@ import type { Conversation, Direction, MediaRef, Message, MessageKind, MessageSt
|
||||
import { SNIPPET_END, SNIPPET_START } from '@shared/types'
|
||||
import { fixVoipDst } from './voipms'
|
||||
|
||||
const SCHEMA_VERSION = 11
|
||||
const SCHEMA_VERSION = 12
|
||||
|
||||
export interface ReadState {
|
||||
did: string
|
||||
@@ -170,6 +170,9 @@ export class MessageDb {
|
||||
// Received"; nobody wrote it, so it goes.
|
||||
if (version >= 1 && version < 11)
|
||||
this.db.exec(`UPDATE messages SET body = '' WHERE media_json IS NOT NULL AND lower(trim(body)) = 'mms received'`)
|
||||
// v12: and one we sent with no words "MMS Sent".
|
||||
if (version >= 1 && version < 12)
|
||||
this.db.exec(`UPDATE messages SET body = '' WHERE media_json IS NOT NULL AND lower(trim(body)) = 'mms sent'`)
|
||||
this.db.pragma(`user_version = ${SCHEMA_VERSION}`)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ function parseYmd(s: string): number {
|
||||
return Date.parse(s + 'T00:00:00Z')
|
||||
}
|
||||
|
||||
export const isMmsPlaceholder = (body: string): boolean => body.trim().toLowerCase() === 'mms received'
|
||||
export const isMmsPlaceholder = (body: string): boolean => /^mms (received|sent)$/.test(body.trim().toLowerCase())
|
||||
|
||||
export function toNewMessage(r: RawSms): NewMessage {
|
||||
const m: NewMessage = {
|
||||
|
||||
Reference in New Issue
Block a user