Skip to content
Commit 7ab83089 authored by Tony Mak's avatar Tony Mak
Browse files

Do not generate smart suggestions if the last message is from local user

Also, instead of using Person.equals, introduce arePersonEqual. It is
because Person.equals is doing == check on the icon, which may return
false even the icons are actually the same.

And fixed a bug in handling sender == null in Message.
According to the javadoc of addMessage, person == null means the message
is from the local user.

Test: atest SmartActionsHelperTest

BUG: 123996228
Change-Id: I0ab24d53796d4b124c23cacf3df25cd8705d4fb3
parent 8e6dc3b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment