Step 2: Creating page Messages: userlist last messages + a page for all the messages received and sent.
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
allfieldSendMsg: function () {
|
||||
return ['userId', 'dest', 'message', 'datemsg', 'read', 'deleted', 'origin', 'idapp']
|
||||
return ['userId', 'source', 'dest', 'message', 'datemsg', 'read', 'deleted', 'origin', 'idapp', 'status', 'options']
|
||||
},
|
||||
|
||||
allfieldTodo: function () {
|
||||
@@ -417,5 +417,15 @@ module.exports = {
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
isBitActive(bit, whattofind) {
|
||||
return ((bit & whattofind) === whattofind)
|
||||
},
|
||||
|
||||
SetBit(myval, bit) {
|
||||
myval = myval & bit;
|
||||
return myval
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -6,8 +6,13 @@ module.exports = {
|
||||
Manager: 2,
|
||||
},
|
||||
|
||||
MessageOptions: {
|
||||
Notify_ByEmail: 2,
|
||||
Notify_ByPushNotification: 4
|
||||
},
|
||||
|
||||
fieldsUserToChange() {
|
||||
return ['username', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'img', 'ipaddr']
|
||||
return ['username', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'img', 'ipaddr', 'lasttimeonline']
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user