[deploy] 🐞Hotfix: Search toggle breaks in some cases (#9454)

* Feature 🚀 : Ability to delete messages in chat channels

- Sending message ID to frontend
- Deleting Message
- Use pusher to delete message realtime

* Minor Bug 🐞: Show message action only for current user

- User can delete or edit their own messages

* Test cases added

* Bug 🐞: Update message id for receiver

Message id was not sent to receiver by pusher

* Refactoring🛠: Message controller refactoring

* Test Cases📝 : Specs for Delete message added

* Feature 🚀 : Ability to edit messages

* Test Cases📝 : Specs for Edit message added

* Merge conflict resolved

* Fixing the serch toggle issue

Co-authored-by: Narender Singh <narender2031@gmail.com>
This commit is contained in:
Sarthak Sharma 2020-07-23 01:57:35 +05:30 committed by GitHub
parent 4cc89e2100
commit 44b8d0894d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1194,7 +1194,7 @@ export default class Chat extends Component {
searchType: '',
paginationNumber: 0,
};
getChannels(searchParams, this.loadChannels);
getChannels(searchParams, 'all', this.loadChannels);
this.setState({ filterQuery: '' });
}
this.setState({ searchShowing: !this.state.searchShowing });
@ -1699,7 +1699,7 @@ export default class Chat extends Component {
sendChannelRequest(
e.target.dataset.channelId,
this.handleJoiningRequestSuccess,
null,
this.handleFailure,
);
};