mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-17 03:13:07 +00:00
verify is phoneNumber exists before fetching
This commit is contained in:
+6
-2
@@ -152,8 +152,12 @@ function changeSelectedConversation(item) {
|
||||
OC.Util.History.pushState('phonenumber=' + phoneNumber);
|
||||
// Reset it for refreshConversation
|
||||
lastMsgDate = 0;
|
||||
fetchConversation(phoneNumber);
|
||||
changeSelectedConversation($(this));
|
||||
|
||||
// phoneNumber must exist
|
||||
if (phoneNumber != null) {
|
||||
fetchConversation(phoneNumber);
|
||||
changeSelectedConversation($(this));
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user