From 0eac643ac687f4d2b1e452ccf624afc5d93ec9e7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 17 Jan 2019 10:50:07 +0000 Subject: [PATCH 1/7] js-sdk rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6dc9a6bfcf..3ceeccbda8 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "linkifyjs": "^2.1.6", "lodash": "^4.13.1", "lolex": "2.3.2", - "matrix-js-sdk": "0.14.2", + "matrix-js-sdk": "0.14.3-rc.1", "optimist": "^0.6.1", "pako": "^1.0.5", "prop-types": "^15.5.8", From df273e0712ded97543dd6c73a99b7ec0c4d82335 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 17 Jan 2019 10:54:52 +0000 Subject: [PATCH 2/7] Prepare changelog for v0.14.8-rc.1 --- CHANGELOG.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 742b8b4529..f192708dab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,71 @@ +Changes in [0.14.8-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.8-rc.1) (2019-01-17) +=============================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.14.7...v0.14.8-rc.1) + + * Change wording of 'invite anyway' setting + [\#2450](https://github.com/matrix-org/matrix-react-sdk/pull/2450) + * Minimal lint-fixes to make develop CI build + [\#2449](https://github.com/matrix-org/matrix-react-sdk/pull/2449) + * Develop->Experimental + [\#2445](https://github.com/matrix-org/matrix-react-sdk/pull/2445) + * Limit line length in the room directory + [\#2438](https://github.com/matrix-org/matrix-react-sdk/pull/2438) + * Develop->Experimental + [\#2444](https://github.com/matrix-org/matrix-react-sdk/pull/2444) + * Fix setting label for unknown invites + [\#2443](https://github.com/matrix-org/matrix-react-sdk/pull/2443) + * Merge develop -> experimental + [\#2441](https://github.com/matrix-org/matrix-react-sdk/pull/2441) + * Give a route for retrying invites for users which may not exist + [\#2434](https://github.com/matrix-org/matrix-react-sdk/pull/2434) + * Show in-room reminder when key backup creating device unverified + [\#2394](https://github.com/matrix-org/matrix-react-sdk/pull/2394) + * Consistent flair ordering. + [\#2389](https://github.com/matrix-org/matrix-react-sdk/pull/2389) + * Fetch matching e2e-test branch + [\#2387](https://github.com/matrix-org/matrix-react-sdk/pull/2387) + * Add some logging for riot-web#7838 + [\#2385](https://github.com/matrix-org/matrix-react-sdk/pull/2385) + * Handle well-known data in the login response + [\#2384](https://github.com/matrix-org/matrix-react-sdk/pull/2384) + * Custom status messages + [\#2347](https://github.com/matrix-org/matrix-react-sdk/pull/2347) + * React-sdk changes to support sandboxed electron + [\#2372](https://github.com/matrix-org/matrix-react-sdk/pull/2372) + * Make sure to grab the InlineSpinner object + [\#2363](https://github.com/matrix-org/matrix-react-sdk/pull/2363) + * Standardize errors about localpart structure + [\#2351](https://github.com/matrix-org/matrix-react-sdk/pull/2351) + * Fix translation error on notification icon + [\#2352](https://github.com/matrix-org/matrix-react-sdk/pull/2352) + * Introduce a default_server_name for aesthetics and rework .well-known + [\#2327](https://github.com/matrix-org/matrix-react-sdk/pull/2327) + * Show the number of unread notifications above the bell on the right + [\#2336](https://github.com/matrix-org/matrix-react-sdk/pull/2336) + * Check to make sure email addresses look roughly valid before inviting them + to rooms + [\#2338](https://github.com/matrix-org/matrix-react-sdk/pull/2338) + * Expose hidden notification rules in UI + [\#2346](https://github.com/matrix-org/matrix-react-sdk/pull/2346) + * Avoid preserving HS url at logout + [\#2340](https://github.com/matrix-org/matrix-react-sdk/pull/2340) + * Speed up room unread checks by not hitting the SettingsStore so often + [\#2339](https://github.com/matrix-org/matrix-react-sdk/pull/2339) + * Remove outdated info about custom skins + [\#2337](https://github.com/matrix-org/matrix-react-sdk/pull/2337) + * Show the IncomingCallBox if the call is for the RoomSubList + [\#2333](https://github.com/matrix-org/matrix-react-sdk/pull/2333) + * Don't consider ACL'd servers as permalink candidates + [\#2331](https://github.com/matrix-org/matrix-react-sdk/pull/2331) + * Fix pinning of rooms without badges + [\#2330](https://github.com/matrix-org/matrix-react-sdk/pull/2330) + * Sort translations by file name + [\#2329](https://github.com/matrix-org/matrix-react-sdk/pull/2329) + * Update React guide in code style + [\#2335](https://github.com/matrix-org/matrix-react-sdk/pull/2335) + * Remove temporary account_deactivation_preferences + [\#2259](https://github.com/matrix-org/matrix-react-sdk/pull/2259) + Changes in [0.14.7](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.7) (2018-12-10) ===================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.14.7-rc.2...v0.14.7) From fcd234f286b25fd7ebec212a9ca3509874739d39 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 17 Jan 2019 10:54:53 +0000 Subject: [PATCH 3/7] v0.14.8-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ceeccbda8..26792463aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "0.14.7", + "version": "0.14.8-rc.1", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": { From 4248a2088580a3d68bd59a1a1824c3acd68f135b Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 21 Jan 2019 16:02:25 +0000 Subject: [PATCH 4/7] Fix settings direct chat We were expecting this function to return a string user ID, but it returned a user object Make it return a user ID and add jsdoc to say what it returns. Fixes https://github.com/vector-im/riot-web/issues/8180 --- src/Rooms.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Rooms.js b/src/Rooms.js index 6f73ea0659..c8f90ec39a 100644 --- a/src/Rooms.js +++ b/src/Rooms.js @@ -159,6 +159,10 @@ export function setDMRoom(roomId, userId) { /** * Given a room, estimate which of its members is likely to * be the target if the room were a DM room and return that user. + * + * @param {Object} room Target room + * @param {string} myUserId User ID of the current user + * @returns {string} User ID of the user that the room is probably a DM with */ function guessDMRoomTargetId(room, myUserId) { let oldestTs; @@ -173,7 +177,7 @@ function guessDMRoomTargetId(room, myUserId) { oldestTs = user.events.member.getTs(); } } - if (oldestUser) return oldestUser; + if (oldestUser) return oldestUser.userId; // if there are no joined members other than us, use the oldest member for (const user of room.currentState.getMembers()) { @@ -186,5 +190,5 @@ function guessDMRoomTargetId(room, myUserId) { } if (oldestUser === undefined) return myUserId; - return oldestUser; + return oldestUser.userId; } From 5cdc8486d38a0ecf2a28dc709cbbff483c04c23a Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 22 Jan 2019 11:14:00 +0000 Subject: [PATCH 5/7] Released js-sdk --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26792463aa..1e14016683 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "linkifyjs": "^2.1.6", "lodash": "^4.13.1", "lolex": "2.3.2", - "matrix-js-sdk": "0.14.3-rc.1", + "matrix-js-sdk": "0.14.3", "optimist": "^0.6.1", "pako": "^1.0.5", "prop-types": "^15.5.8", From f6d15d652bae107875d886336d06e1bb12fd21c6 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 22 Jan 2019 11:26:28 +0000 Subject: [PATCH 6/7] Prepare changelog for v0.14.8 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f192708dab..09ff79ae0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Changes in [0.14.8](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.8) (2019-01-22) +===================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.14.8-rc.1...v0.14.8) + + * Fix settings direct chat + [\#2467](https://github.com/matrix-org/matrix-react-sdk/pull/2467) + Changes in [0.14.8-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.8-rc.1) (2019-01-17) =============================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.14.7...v0.14.8-rc.1) From 17e9a442e447db620908a1be908449c365a52218 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 22 Jan 2019 11:26:29 +0000 Subject: [PATCH 7/7] v0.14.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e14016683..5d765a5bb2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "0.14.8-rc.1", + "version": "0.14.8", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": {