Skip to content

Commit ce660c1

Browse files
committed
fix(react-root): update the CSS selector used to retrieve the React instance (which caused app crash)
fix(chat-box): ensure that the chat box is not covered by the container of GIF/audio recording/camera buttons on mobile fix(call): hide call buttons as this feature is broken
1 parent 9ccb450 commit ce660c1

File tree

7 files changed

+40
-5
lines changed

7 files changed

+40
-5
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* This file is part of Messenger UWP.
2+
Copyright (C) 2020 Sylvain Bruyère
3+
4+
Messenger UWP is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, version 3.
7+
8+
Messenger UWP is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with Messenger UWP. If not, see <https://www.gnu.org/licenses/>. */
15+
16+
17+
/* Hide the call room button */
18+
._30yy._94py {
19+
display: none;
20+
}
21+
22+
/* Hide the voice and video call buttons */
23+
._fl2 a {
24+
width: auto !important;
25+
height: auto !important;
26+
}
27+
._fl2 a [data-testid="startVoiceCall"], ._fl2 a [data-testid="startVideoCall"] {
28+
display: none;
29+
}

Messenger UWP/CSS/master-detail.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ along with Messenger UWP. If not, see <https://www.gnu.org/licenses/>. */
4848
height: 100%;
4949
}
5050

51+
/* Fix the chat box that was covered by the container of GIF/audio recording/camera buttons on mobile */
52+
._5irm._7mkm {
53+
z-index: 400;
54+
}
55+
5156
/* Show the Messenger icon when there is nothing in detail view */
5257
._1ut7 {
5358
background-image: url("ms-appx-web:///Assets/SplashScreen.png");

Messenger UWP/JavaScript/messenger-pwa/selectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
MessengerPWA.Selectors = {
18-
ROOT_CONTAINER: "_li",
18+
ROOT_CONTAINER: "._2sdm > ._li",
1919
MASTER_DETAIL_CONTAINER: "_4sp8",
2020

2121
MASTER_VIEW: "_1enh",

Messenger UWP/JavaScript/messenger-pwa/views/master-detail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ MessengerPWA.Views.MasterDetail = (function () {
1818
var self = {};
1919

2020
var container = DOM.getByClass(MessengerPWA.Selectors.MASTER_DETAIL_CONTAINER);
21-
var root = DOM.getByClass(MessengerPWA.Selectors.ROOT_CONTAINER);
21+
var root = DOM.getBySelector(MessengerPWA.Selectors.ROOT_CONTAINER);
2222
var rootComponent = null;
2323

2424
/**

Messenger UWP/Messenger UWP.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
<None Include="CSS\cancel-media-queries.css" />
212212
<None Include="CSS\cards.css" />
213213
<None Include="CSS\dialogs.css" />
214+
<None Include="CSS\hide-broken-features.css" />
214215
<None Include="CSS\info-panel.css" />
215216
<None Include="CSS\master-detail.css" />
216217
<None Include="CSS\picture-album.css" />

Messenger UWP/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ along with Messenger UWP. If not, see <https://www.gnu.org/licenses/>. -->
2121
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
2222
IgnorableNamespaces="uap uap5 mp">
2323

24-
<Identity Name="53330SSoft.MessengerUWP" Publisher="CN=C2230194-F9C4-4811-936E-C2BD4208FD18" Version="0.3.0.0" />
24+
<Identity Name="53330SSoft.MessengerUWP" Publisher="CN=C2230194-F9C4-4811-936E-C2BD4208FD18" Version="0.3.1.0" />
2525
<mp:PhoneIdentity PhoneProductId="59435353-1be9-48a9-aaba-cfb9634454a1" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
2626

2727
<Properties>

Messenger UWP/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
// You can specify all the values or you can default the Build and Revision Numbers
2525
// by using the '*' as shown below:
2626
// [assembly: AssemblyVersion("1.0.*")]
27-
[assembly: AssemblyVersion("0.3.0.0")]
28-
[assembly: AssemblyFileVersion("0.3.0.0")]
27+
[assembly: AssemblyVersion("0.3.1.0")]
28+
[assembly: AssemblyFileVersion("0.3.1.0")]
2929
[assembly: ComVisible(false)]

0 commit comments

Comments
 (0)