Skip to content

Commit

Permalink
Fixes add message issue. (oppia#7206)
Browse files Browse the repository at this point in the history
  • Loading branch information
DubeySandeep committed Jul 27, 2019
1 parent 8bcd74b commit 4239d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/domain/feedback_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def create_message(
msg.put()

# Update the message count in the thread.
if thread.message_count:
if thread.message_count is not None:
thread.message_count += 1
else:
thread.message_count = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ <h1 class="stat-value"><[$ctrl.subscriptionsList.length]></h1>
</div>
<div>
<button class="btn btn-success feedback-thread-new-message-send"
ng-click="$ctrl.addNewMessage(threadId, $ctrl.newMessage.text)"
ng-click="$ctrl.addNewMessage($ctrl.threadId, $ctrl.newMessage.text)"
ng-disabled="$ctrl.messageSendingInProgress || !$ctrl.newMessage.text">
<span ng-if="$ctrl.messageSendingInProgress" translate="I18N_LEARNER_DASHBOARD_SEND_FEEDBACK_THREAD_MESSAGE_IN_PROGRESS"></span>
<span class="protractor-test-feedback-send-message"
Expand Down

0 comments on commit 4239d96

Please sign in to comment.