Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Santhosh
Agile24X7-Mobile-singledb
Commits
96aa6c73
Commit
96aa6c73
authored
3 years ago
by
santhosh
Browse files
Options
Download
Email Patches
Plain Diff
good
parent
5d2fbabc
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CommonComponents/AdminChat.js
+11
-6
src/CommonComponents/AdminChat.js
src/CommonComponents/AdminChatUser.js
+1388
-604
src/CommonComponents/AdminChatUser.js
with
1399 additions
and
610 deletions
+1399
-610
src/CommonComponents/AdminChat.js
View file @
96aa6c73
...
...
@@ -100,19 +100,24 @@ class ListItem extends Component {
.
then
((
response
)
=>
response
.
json
())
.
then
((
responseJson
)
=>
{
console
.
warn
(
"
Messages For chat application
"
+
JSON
.
stringify
(
responseJson
.
data
));
// alert(
"datasource3"+
JSON.stringify(responseJson))
// alert(JSON.stringify(responseJson))
// console.warn("Messages from users" + JSON.stringify(responseJson))
// console.warn("Send By Name" + JSON.stringify(responseJson.data))
if
(
responseJson
.
status
===
'
True
'
)
{
console
.
warn
(
"
Setted Data
"
)
this
.
setState
({
dataSource3
:
responseJson
.
data
,
});
}
else
{
console
.
warn
(
"
Empty Data
"
)
this
.
setState
({
dataSource
3
:
''
,
dataSource
:
''
,
});
}
})
...
...
@@ -187,7 +192,7 @@ class ListItem extends Component {
else
{
console
.
warn
(
"
Empty Data
"
)
this
.
setState
({
dataSource
2
:
''
,
dataSource
:
''
,
});
}
})
...
...
@@ -255,7 +260,7 @@ class ListItem extends Component {
return
groupMsg
[
groupMsg
.
length
-
1
]
}
// alert(getLastMsgTime)
// var data1=this.state.dataSource1;
const
getMessagesCount
=
(
data1
,
id
)
=>
{
// console.warn("ids"+JSON.stringify(data1) +id)
...
...
@@ -841,7 +846,7 @@ export default class AdminChat extends Component {
.
then
((
responseJson
)
=>
{
// alert(JSON.stringify(responseJson))
// console.warn("Employees" + JSON.stringify(responseJson));
//
this.addManageEmployeesList(responseJson.data, cropcode) //Store Manage Employee List in Offline
this
.
addManageEmployeesList
(
responseJson
.
data
,
cropcode
)
//Store Manage Employee List in Offline
// this.setState({
// isLoading: false,
...
...
@@ -1504,4 +1509,4 @@ const pickerSelectStyles = StyleSheet.create({
},
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/CommonComponents/AdminChatUser.js
View file @
96aa6c73
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help