Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
193
Merge Requests
13
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
e1b46243a98ee41a2061383a737550ba1437e195...79d0fc78f699726b822570dae0f104f7cbdf9507
Source
79d0fc78f699726b822570dae0f104f7cbdf9507
...
Target
e1b46243a98ee41a2061383a737550ba1437e195
Compare
Commits (2)
(fix) add username to string in base model
· 4bf87f0b
Juan Manuel Solaro
authored
28 minutes ago
4bf87f0b
Merge branch 'fix-username-touppercase-not-a-function' into 'release/3.12.1'
· 79d0fc78
Brian Hatchet
authored
28 minutes ago
(fix) add username to string in base model See merge request
!444
79d0fc78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/common/BaseModel.js
View file @
79d0fc78
...
...
@@ -81,6 +81,11 @@ export default class BaseModel {
constructor
(
data
)
{
Object
.
assign
(
this
,
data
);
// Some users have a number as username and engine return them as a number
if
(
this
.
username
)
{
this
.
username
=
this
.
username
.
toString
();
}
// create childs instances
const
childs
=
this
.
childModels
()
for
(
var
prop
in
childs
)
{
...
...
This diff is collapsed.
src/messenger/conversation/ConversationView.js
View file @
79d0fc78
...
...
@@ -38,11 +38,6 @@ export default class ConversationView extends Component {
let
unread
=
item
.
unread
?
<
Icon
style
=
{
styles
.
icons
}
name
=
'
md-notifications
'
color
=
'
#4caf50
'
size
=
{
19
}
/> : null
;
let
online
=
item
.
online
?
<
Icon
style
=
{
styles
.
icons
}
name
=
'
md-radio-button-on
'
color
=
'
#2196f3
'
size
=
{
19
}
/> : null
;
// Added to capture information about /issues/1203549247/?project=1538735
if
(
item
.
username
&&
!
item
.
username
.
toUpperCase
)
{
Sentry
.
captureMessage
(
'
ISSUE 1203549247 No username on
'
+
item
.
guid
+
'
name:
'
+
item
.
name
);
}
return
(
<
TouchableOpacity
style
=
{
styles
.
row
}
onPress
=
{
this
.
_navToConversation
}
>
<
Image
source
=
{
avatarImg
}
style
=
{
styles
.
avatar
}
/
>
...
...
This diff is collapsed.