mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-09 17:06:12 +00:00
verify is phoneNumber exists before fetching
This commit is contained in:
parent
6394f7394d
commit
03b6c70562
@ -152,8 +152,12 @@ function changeSelectedConversation(item) {
|
|||||||
OC.Util.History.pushState('phonenumber=' + phoneNumber);
|
OC.Util.History.pushState('phonenumber=' + phoneNumber);
|
||||||
// Reset it for refreshConversation
|
// Reset it for refreshConversation
|
||||||
lastMsgDate = 0;
|
lastMsgDate = 0;
|
||||||
fetchConversation(phoneNumber);
|
|
||||||
changeSelectedConversation($(this));
|
// phoneNumber must exist
|
||||||
|
if (phoneNumber != null) {
|
||||||
|
fetchConversation(phoneNumber);
|
||||||
|
changeSelectedConversation($(this));
|
||||||
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user