[FIX] Load messages issue when trying to get ts from empty results#2185
Merged
diegolmello merged 1 commit intodevelopfrom Jun 12, 2020
Merged
[FIX] Load messages issue when trying to get ts from empty results#2185diegolmello merged 1 commit intodevelopfrom
diegolmello merged 1 commit intodevelopfrom
Conversation
diegolmello
approved these changes
Jun 12, 2020
diegolmello
added a commit
that referenced
this pull request
Jul 6, 2020
* [FIX] Set the http-agent to the form that Rocket.Chat requires for logging (#1482) Co-authored-by: Diego Mello <[email protected]> * [FIX] "Following thread" and "Unfollowed Thread" is hardcoded and not translated (#1625) * [FIX] Disable reset button if form didn't changed (#1569) Co-authored-by: Diego Mello <[email protected]> * [FIX] Header title of RoomInfoView (#1553) * [I18N] Gallery Permissions DE (#1542) * [FIX] Not allow to send messages to archived room (#1623) * [FIX] Profile fields automatically reset (#1502) * [FIX] Show attachment on ThreadMessagesView (#1493) * [NEW] Wordpress auth (#1633) * [CHORE] Add Start Packager script (#1639) * [CHORE] Update RN to 0.61.5 (#1638) * [CHORE] Update RN to 0.61.5 * [CHORE] Update react-native patch Co-authored-by: Djorkaeff Alexandre <[email protected]> * Bump version to 4.3.1 (#1641) * [FIX] Change force logout rule (#1640) * Bump version to 4.4.0 (#1643) * [IMPROVEMENT] Use MessagingStyle on Android Notification (#1575) * [NEW] Request review (#1627) * [NEW] Pull to refresh RoomView (#1657) * [FIX] Unsubscribe from room (#1655) * [FIX] Server with subdirs (#1646) * [NEW] Clear cache (#1660) * [IMPROVEMENT] Memoize and batch subscriptions updates (#1642) * [FIX] Disallow empty sharing (#1664) * [REGRESSION] Use HTTPS links for sharing and markets protocol for review (#1663) * [FIX] In some cases, share extension doesn't load images (#1649) * [i18n] DE translations for new invite function and some minor fixes (#1631) * [FIX] Remove duplicate jetify step (#1628) minor: also remove 'cd' calls Co-authored-by: Diego Mello <[email protected]> * [REGRESSION] Read messages (#1666) * [i18n] German translations missing (#1670) * [FIX] Notifications crash on older Android Versions (#1672) * [i18n] Added Dutch translation (#1676) * [NEW] Omnichannel Beta (#1674) * [NEW] Confirm logout/clear cache (#1688) * [I18N] Add es-ES language (#1495) * [NEW] UiKit Beta (#1497) * [IMPROVEMENT] Use reselect (#1696) * [FIX] Notification in Android API level less than 24 (#1692) * [IMPROVEMENT] Send tmid on slash commands and media (#1698) * [FIX] Unhandled action on UIKit (#1703) * [NEW] Pull to refresh RoomsList (#1701) * [IMPROVEMENT] Reset app when language is changed (#1702) * [FIX] Small fixes on UIKit (#1709) * [FIX] Spotlight (#1719) * [CHORE] Update react-native-image-crop-picker (#1712) * [FIX] Messages Overlapping (Android) and MessageBox Scroll (iOS) (#1720) * [REGRESSION] Remove @ and # from mention (#1721) * [NEW] Direct message from user info (#1516) * [FIX] Delete slash commands (#1723) * [IMPROVEMENT] Hold URL to copy (#1684) * [FIX] Different sourcemaps generation for Hermes (#1724) * [FIX] Different sourcemaps generation for Hermes * Upload sourcemaps after build * [REVERT] Show emoji keyboard on Android (#1738) * [FIX] Stop logging react-native-image-crop-picker (#1745) * [FIX] Prevent toast ref error (#1744) * [FIX] Prevent reaction map error (#1743) * [FIX] Add missing calls to user info (#1741) * [FIX] Catch room unsubscribe error (#1739) * [i18n] Missing German keys (#1735) * [FIX] Missing i18n on MessagesView title (#1733) * [FIX] UIKit Modal: Weird behavior on Android Tablet (#1742) * [i18n] Missing key on German (#1747) Co-authored-by: Diego Mello <[email protected]> * [i18n] Add Italian (#1736) * [CHORE] Memory leaks investigation (#1675) * [IMPROVEMENT] Alert verify email when enabled (#1725) * [NEW] Jitsi JWT added to URL (#1746) * [FIX] UIKit submit when connection lost (#1748) * Bump version to 4.5.0 (#1761) * [NEW] Default browser (#1752) Co-authored-by: Diego Mello <[email protected]> * [FIX] HTTP Basic Auth (#1753) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Honor profile fields edit settings (#1687) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Room announcements (#1726) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Honor Register/Login settings (#1727) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Make links clickable on Room Info (#1730) Co-authored-by: Diego Mello <[email protected]> * [NEW] Hide system messages (#1755) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Honor "Message_AudioRecorderEnabled" (#1764) Co-authored-by: Diego Mello <[email protected]> * [i18n] Missing de keys (#1765) Co-authored-by: Diego Mello <[email protected]> * [FIX] Redirect user to SetUsernameView (#1728) Co-authored-by: Diego Mello <[email protected]> * [FIX] Join Room (#1769) Co-authored-by: Diego Mello <[email protected]> * [FIX] Accept all media types using * (#1770) Co-authored-by: Diego Mello <[email protected]> * [FIX] Use RealName when necessary (#1758) Co-authored-by: Diego Mello <[email protected]> * [FIX] Markdown Line Break (#1783) * [IMPROVEMENT] Remove useMarkdown (#1774) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Open browser rather than webview on Create Workspace (#1788) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Markdown perf (#1796) * [FIX] Stop video when modal is closed (#1787) Co-authored-by: Diego Mello <[email protected]> * [FIX] Hide reply notification action when there are missing data (#1771) Co-authored-by: Diego Mello <[email protected]> * [i18n] Added Japanese translation (#1781) Co-authored-by: Diego Mello <[email protected]> * [FIX] Reset password error message (#1772) Co-authored-by: Diego Mello <[email protected]> * [FIX] Close tablet modal (#1773) Co-authored-by: Diego Mello <[email protected]> * [FIX] Setting not present (#1775) Co-authored-by: Diego Mello <[email protected]> * [FIX] Thread header (#1776) Co-authored-by: Diego Mello <[email protected]> * [FIX] Keyboard tracking loses input ref (#1784) Co-authored-by: Diego Mello <[email protected]> * [NEW] Mark message as unread (#1785) Co-authored-by: Djorkaeff Alexandre <[email protected]> * [IMPROVEMENT] Log server version (#1786) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Add loading message on long running tasks (#1798) Co-authored-by: Diego Mello <[email protected]> * [CHORE] Switch Apple account on Fastlane (#1810) * [FIX] Watermelon throwing "Cannot update a record with pending updates" (#1754) * [FIX] Detox tests (#1790) * [CHORE] Use markdown preview on RoomView Header (#1807) Co-authored-by: Diego Mello <[email protected]> * [FIX] LoginSignup blink services (#1809) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Request user presence on demand (#1813) Co-authored-by: Diego Mello <[email protected]> * [FIX] Remove all invited users when create a channel (#1814) Co-authored-by: Diego Mello <[email protected]> * [FIX] Pop from room which you have been removed (#1819) Co-authored-by: Diego Mello <[email protected]> * [FIX] Room Info styles (#1820) Co-authored-by: Diego Mello <[email protected]> * [i18n] Add missing German keys (#1800) Co-authored-by: Diego Mello <[email protected]> * [FIX] Empty mentions for @ALL and @here when real name is enabled (#1822) Co-authored-by: Diego Mello <[email protected]> * [TESTS] Markdown added to Storybook (#1812) Co-authored-by: Diego Mello <[email protected]> * [REGRESSION] Room View header title (#1827) Co-authored-by: Diego Mello <[email protected]> * [FIX] Storybook snapshots (#1831) Co-authored-by: Djorkaeff Alexandre <[email protected]> * [FIX] Mentions (#1829) Co-authored-by: Diego Mello <[email protected]> * [FIX] Thread message not found (#1830) Co-authored-by: Diego Mello <[email protected]> * [FIX] Separate delete and remove channel (#1832) * Rename to delete room * Separate delete and remove channel * handleRemoved -> handleRoomRemoved * [FIX] Navigate to RoomsList & Handle tablet case Co-authored-by: Djorkaeff Alexandre <[email protected]> * [NEW] Filter system messages per room (#1815) Co-authored-by: Djorkaeff Alexandre <[email protected]> Co-authored-by: Diego Mello <[email protected]> * [FIX] e2e tests (#1838) * [FIX] Consecutive clear cache calls freezing app (#1851) * Bump version to 4.5.1 (#1853) * [FIX][iOS] Ignore silent mode on audio player (#1862) * [IMPROVEMENT] Create App Group property on Info.plist (#1858) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Make username clickable on message (#1618) Co-authored-by: Diego Mello <[email protected]> * [FIX] Show proper error message on profile (#1768) Co-authored-by: Diego Mello <[email protected]> * [IMPROVEMENT] Show toast when a message is starred/unstarred (#1616) Co-authored-by: Diego Mello <[email protected]> * [FIX] Incorrect size params to avatar endpoint (#1875) Co-authored-by: Diego Mello <[email protected]> * [FIX] Remove unrecognized emoji flags on android (#1887) Co-authored-by: Diego Mello <[email protected]> * [FIX] Remove react-native global installs (#1886) Co-authored-by: Diego Mello <[email protected]> * [FIX] Emojis transparent on android (#1881) Co-authored-by: Diego Mello <[email protected]> * Bump acorn from 5.7.3 to 5.7.4 (#1876) Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](acornjs/acorn@5.7.3...5.7.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Diego Mello <[email protected]> * Bump version to 4.6.
@RocketChat/ReactNative
resultsometimes return an empty array, so the latest item isundefined.