★ wanayoo — archive 1999 https://github.com/RocketChat/Rocket.Chat.iOS/pull/2795Nouvelle recherche | Portail wanayoo
Skip to content
This repository has been archived by the owner. It is now read-only.

[NEW] Reaction and emoji #2795

Open
wants to merge 3 commits into
base: develop
from

Conversation

@PushUpek
Copy link

@PushUpek PushUpek commented Nov 27, 2019

@RocketChat/ios

  • Get popup of emoji when typing: same like on desktop
  • Typing +:emoji_name: should react to last message

Closes #2638
Closes #2627


let string3 = "+upside_down:"
XCTAssertNil(string3.reaction())

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)


let string2 = ":upside_down:"
XCTAssertNil(string2.reaction())

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

}

XCTAssertEqual(emoji, ":upside_down:")

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

guard let emoji = string.reaction() else {
return XCTFail("string is valid reaction")
}

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)


func testReaction() {
let string = "+:upside_down:"

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

@@ -146,4 +146,23 @@ class StringExtensionSpec: XCTestCase {

XCTAssertNil(string2.commandAndParams())
}

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)


let emoji = String(self.dropFirst())
guard emoji.first == ":" && emoji.last == ":" else { return nil }

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)


func reaction() -> String? {
guard self.first == "+" && self.count > 1 else { return nil }

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

@@ -137,6 +137,15 @@ extension String {
let params = components.dropFirst().joined(separator: " ")
return (command: command, params: params)
}

This comment has been minimized.

@houndci-bot

houndci-bot Nov 27, 2019

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

PushUpek added 3 commits Nov 27, 2019
Fix
@PushUpek PushUpek force-pushed the PushUpek:reaction_and_emoji branch from 7ea400e to 131afc4 Nov 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.