Scott Nonnenberg
9a09e7a16b
TimerView: Update only as often as 500ms
...
FREEBIE
2017-06-06 15:33:55 -07:00
Scott Nonnenberg
5351b60365
TimerView: Remove some unused bits of code
...
- initialize doesn't need to call update because
MessageView.renderExpiring() calls it immediately
- we don't need the className because that's already present on
the el it attaches to, part of the MessageView's template.
FREEBIE
2017-06-06 15:33:55 -07:00
Scott Nonnenberg
fb7e7cf34c
TimerView: don't continue to update after expiration
...
FREEBIE
2017-06-06 15:33:55 -07:00
Scott Nonnenberg
0c2c36c11a
loadMoreMessages: Fix broken reference to this.view.outerHeight
...
:0/
FREEBIE
2017-06-02 12:08:06 -07:00
Ikarulus
ab5489baa0
fixed #1163 , dark theme flaw
2017-06-01 16:45:17 -07:00
Scott Nonnenberg
ec22445f75
Bulletproofing of markRead and findNewestVisibleUnread
...
FREEBIE
2017-06-01 16:09:27 -07:00
Scott Nonnenberg
1775e97bcd
Add comment and fine-tune last-seen indicator when not focused
...
FREEBIE
2017-06-01 16:09:27 -07:00
Scott Nonnenberg
672a517b73
Preserve lastSeenIndicator location when not focused
...
Also, a couple name changes of ConversationView methods to better
reflect what they do. update -> reset, since the method is destructive.
FREEBIE
2017-06-01 16:09:27 -07:00
Scott Nonnenberg
944ae296eb
Prevent 'mark read on scroll' during fetches
...
FREEBIE
2017-06-01 16:09:27 -07:00
Scott Nonnenberg
b60b20bde4
Mark messages read only when visible, on receipt, focus, scroll
...
- Only mark messages read when scrolling if in focus and visible
- Remove last seen indicator when scrolling to the bottom with scroll
down button
- Update last seen indicator when we don't already have one and we're
scrolled up.
FREEBIE
2017-06-01 16:09:27 -07:00
Scott Nonnenberg
9a0a87ab40
Last seen indicator: dismissed only on open and send
...
It can be moved if you're not scrolled to the bottom of of the window
or the window doesn't have focus when a new message comes in. Other than
that, it marches up the window until you close and reopen the
conversation, or send a message.
Note that we do NOT mark messages as read if they come in when you are
scrolled up. But we do mark the entire conversation as read if you
switch away from the app and back.
FREEBIE
2017-06-01 16:09:27 -07:00
Scott Nonnenberg
eb1a4b3ac6
loadAttachments: Handle the zero -> some attachments case
...
FREEBIE
2017-06-01 15:38:26 -07:00
Scott Nonnenberg
0e1b534d3c
Make MessageView.render() idempotent
...
Re-renders happen when we re-fetch messages from the database, and our
previous technique for loading attachments resulted in a new attachment
view added for every call to render()
This change ensures that a second call to render() does not add any more
attachment views.
FREEBIE
2017-06-01 15:38:26 -07:00
Scott Nonnenberg
25ebcc3131
Fix broken reference to i18n string 'mediaMessage'
...
FREEBIE
2017-06-01 15:38:26 -07:00
Scott Nonnenberg
0b6d5de753
Update the scroll position when 'fetch more messages' is complete
...
FREEBIE
2017-06-01 15:19:08 -07:00
lilia
3dbb21c53c
Fix being re-added to a group you previously left
...
Negate the flag marking the group as left. Fixes #1207 .
// FREEBIE
2017-05-30 10:51:07 -07:00
Scott Nonnenberg
13a91eece8
MessageListView.measureScrollPosition: reuse variables
2017-05-30 10:44:00 -07:00
Scott Nonnenberg
c5530b7235
Increase wiggle room to 30 px, which should ensure text cut off
...
FREEBIE
2017-05-30 10:44:00 -07:00
Scott Nonnenberg
84397a2ef4
20px at bottom of conversation considered 'at the bottom'
...
So users who are 'close enough' at the bottom of the conversation won't
get marooned in history.
FREEBIE
2017-05-30 10:44:00 -07:00
Scott Nonnenberg
09791ab7d9
Make last seen indicator more stable, with less forced removal
...
FREEBIE
2017-05-26 17:26:35 -07:00
Scott Nonnenberg
c3dc9732ef
Fix: Don't scroll to last seen indicator on focus
...
FREEBIE
2017-05-26 17:26:35 -07:00
Scott Nonnenberg
10c2874d19
Fix race condition: Pull from database after add to conversation
...
Also add some console logs to help us determine whether this ever
happens to people in the wild.
FREEBIE
2017-05-26 16:02:14 -07:00
Scott Nonnenberg
9de384f3b8
Reset last seen indicator timing on focus of window
...
FREEBIE
2017-05-25 16:41:21 -07:00
Scott Nonnenberg
01918049b4
Keep last seen indicator around for five seconds
...
Helps calm the user experience a little more, makes it easier to
understand what's happening when messages are coming in quickly.
FREEBIE
2017-05-25 16:41:21 -07:00
Scott Nonnenberg
4e9e811d12
Last seen indicator: Keep scroll position when window loses focus
...
FREEBIE
2017-05-25 16:41:21 -07:00
Scott Nonnenberg
3beecce94e
fetchConversation: Minimize scans across loaded messages
...
FREEBIE
2017-05-25 16:30:30 -07:00
Scott Nonnenberg
d5d1d58cc2
Exclude Backbone-sourced method from jscs checks
...
FREEBIE
2017-05-25 16:30:30 -07:00
Scott Nonnenberg
3ceb3a049e
Override Message.fetch to ensure that db data overrides local
...
FREEBIE
2017-05-25 16:30:30 -07:00
Scott Nonnenberg
2c81539042
A guard to prevent infinite loops in fetching of conversation
...
FREEBIE
2017-05-25 16:30:30 -07:00
r-clancy
66b19d5cf7
Add support for opening the inbox via a shortcut - fixes #1134 .
2017-05-24 10:51:38 -07:00
Scott Nonnenberg
fdf04f6229
Ensure that we never show last seen indicator if count is zero
...
FREEBIE
2017-05-23 15:41:05 -07:00
Scott Nonnenberg
e023c58883
Update last seen indicator even if window doesn't have focus
...
FREEBIE
2017-05-23 11:08:23 -07:00
lilia
72019eb79c
Reuse a variable
...
FREEBIE
2017-05-23 11:08:23 -07:00
lilia
176339ffe6
Add log to see if we ever fetch while fetching
...
// FREEBIE
2017-05-23 11:08:23 -07:00
lilia
16f3717824
Move refresh prekeys out of SignalProtocolStore
...
Use an event/listener instead
// FREEBIE
2017-05-23 11:08:23 -07:00
lilia
017bb56cca
Fix some corner casese with last seen indicator
...
* Remove increment behavior
* Dismiss when new messages arrive but the window is focused
* Update the indicator when window becomes focused.
// FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
bb468e7b01
Wait for scroll before deciding whether to add scroll down button
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
30b7bf23db
Recursively fetch messages until we've loaded all unread
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
8b4402e8a5
Only show scroll down button if we're not at bottom of convo
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
4c7bfbe9ff
Scroll down button: when scrolled up, or new non-visible message
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
3cfac58d78
Eliminate all console errors during test run
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
3e01d78c89
MessageListView remove unused reset-scroll event
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
73f2a4a0fb
Simplify MessageListView.resetScrollPosition: no translation math
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
bfdb8254a4
Scroll on new message only if we were already at bottom
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
fed26c36ca
Add new Last Seen Indicator with unread count, scroll to it
...
This is to ensure that when there are a lot of unread messages, the user
is given the chance to see all of them by being scrolled to the oldest
new message.
When a new message comes in, the indicator will be incremented.
When the user sends a message or switches away from the conversation,
the last seen indicator will be removed.
FREEBIE
2017-05-23 11:08:23 -07:00
lilia
3f1d8ee2b8
Fix display name for ios voice messages
...
iOS populates a filename for voice messages which was overruling our check for
the voice message flag when choosing the display name.
// FREEBIE
2017-05-19 10:25:30 -07:00
lilia
89a7875747
Remove unused function
...
This was supposed to solve the problem of losing group state after a reinstall
by inspecting member registration ids and pre-emptively sending group updates to
those who appear newly re-registered, but it has been unused since 6123c419
.
Nowadays there's a protocol for requesting lost group state from other members.
// FREEBIE
2017-05-16 15:37:05 -07:00
lilia
80bfe18f02
Mark groups left on synced "You left the group"
...
When leaving a group on mobile, we sync the group quit message to desktop, but
we weren't marking the conversation left.
// FREEBIE
2017-05-16 15:23:29 -07:00
lilia
4842ef6153
Sync end session messages
...
// FREEBIE
2017-05-16 12:14:07 -07:00
lilia
cfe0c77243
Conversation view blocks sending to left groups
...
Instead of attempting to send, which will throw an 'Unknown group' exception,
show a toast.
// FREEBIE
2017-05-16 12:10:29 -07:00