Update DirectMessage.vue component

This commit is contained in:
Daniel Supernault 2024-10-05 23:56:53 -06:00
parent 0c95f679b3
commit b89896052c
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 3 additions and 1 deletions

View File

@ -456,7 +456,9 @@
// objDiv.scrollTop = objDiv.scrollHeight; // objDiv.scrollTop = objDiv.scrollHeight;
// }, 300); // }, 300);
}).catch(err => { }).catch(err => {
if(err.response.status == 403) { if(err.response.status == 400) {
swal('Error', err.response.data.error, 'error');
} else if(err.response.status == 403) {
self.blocked = true; self.blocked = true;
swal('Profile Unavailable', 'You cannot message this profile at this time.', 'error'); swal('Profile Unavailable', 'You cannot message this profile at this time.', 'error');
} }