Skip to content

Issue #129#135

Closed
nathantannar4 wants to merge 2 commits into
v0.8.0from
bugFix/MessageInputBarRendering
Closed

Issue #129#135
nathantannar4 wants to merge 2 commits into
v0.8.0from
bugFix/MessageInputBarRendering

Conversation

@nathantannar4

Copy link
Copy Markdown
Member

No description provided.

I noticed that since viewDidAppear can be called more than once during a views life cycle we dont want to add a copy of the MessageInputBar to the view after is has already been correctly rendered. I just added a flag to account for this edge case. To see an example of the bug, present a UIAlertController in MessagesViewController and a copy of the MessageInputBar gets incorrectly added.
}

open func textViewDidChange() {
let trimmedText = inputTextView.text.trimmingCharacters(in: .whitespacesAndNewlines)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it necessary to remove this? I like how the send button is enabled/disabled by taking into account if a message only contains white space

@codecov-io

codecov-io commented Sep 19, 2017

Copy link
Copy Markdown

Codecov Report

Merging #135 into v0.8.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           v0.8.0   #135   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          77     77           
=====================================
  Hits           77     77

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db61882...b3a93bc. Read the comment docs.

@SD10 SD10 mentioned this pull request Sep 21, 2017
2 tasks
@SD10

SD10 commented Sep 22, 2017

Copy link
Copy Markdown
Member

@nathantannar4 I'm going to close this because it doesn't fix the issue and it changes the functionality around enabling/disabling the send button

@SD10 SD10 closed this Sep 22, 2017
@SD10 SD10 deleted the bugFix/MessageInputBarRendering branch September 23, 2017 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants