v0.8.0: bubble for Android 0.7.3 — Get info for everyone, with the chat's photos; no more "MMS Received"
Desktop: - Click a chat's picture or name (or right-click it in the list → Get info…) for any chat, not only groups. One person: their picture, name, number (and its label), which of your numbers you're texting from, Add to contacts… if they aren't one. The number no longer sits in the header. - Get info lists every photo and video in the chat as thumbnails, oldest first like the chat, scrolled to the newest. Each opens full size. - The full-size view steps through the chat's photos with ← and → (or the side buttons) and says "n of N · date", from Get info or from the chat. Its glyphs were light gray on the white buttons; now the usual glyph color. Both: voip.ms puts "MMS Received" as the text of a received picture that came without words. Nobody wrote it, so it's dropped as messages come in, and once from the ones already stored (only on messages with pictures, so someone typing "MMS received" still shows). Tried in a sandbox with made-up chats and generated pictures, driven over DevTools: the header, Get info for a person and a group, thumbnails, ←/→ through 14 pictures, Esc closing the picture then the dialog, and the v11 migration clearing a stored "MMS Received".
This commit is contained in:
@@ -90,6 +90,12 @@ final class Store {
|
||||
if (!hasColumn("read_state", "name_ts")) db.execSQL("ALTER TABLE read_state ADD COLUMN name_ts INTEGER");
|
||||
if (!hasColumn("read_state", "unread_ts")) db.execSQL("ALTER TABLE read_state ADD COLUMN unread_ts INTEGER");
|
||||
if (!hasColumn("read_state", "archived_ts")) db.execSQL("ALTER TABLE read_state ADD COLUMN archived_ts INTEGER");
|
||||
// voip.ms gives a received picture with no words the text "MMS Received";
|
||||
// nobody wrote it, so it goes (once, for what came in before).
|
||||
if (get("mms_received_stripped") == null) {
|
||||
db.execSQL("UPDATE messages SET body = '' WHERE media_json IS NOT NULL AND lower(trim(body)) = 'mms received'");
|
||||
set("mms_received_stripped", "1");
|
||||
}
|
||||
if (get("unread_floor") == null) set("unread_floor", String.valueOf(System.currentTimeMillis()));
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,8 @@ final class VoipMs {
|
||||
JSONArray refs = new JSONArray();
|
||||
for (String u : urls) refs.put(new JSONObject().put("url", u));
|
||||
m.mediaJson = refs.toString();
|
||||
// voip.ms's own stand-in text for a picture with no words, not the sender's.
|
||||
if (m.body.trim().equalsIgnoreCase("MMS Received")) m.body = "";
|
||||
} else if (Phone.charCount(m.body) > Phone.SMS_TEXT_LIMIT) {
|
||||
m.kind = "mms";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user