Use account colour on notifications properly

Stephen Paul Weber created

Instead of always using autogenerated colour

Change summary

src/main/java/eu/siacs/conversations/services/NotificationService.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/services/NotificationService.java 🔗

@@ -886,7 +886,7 @@ public class NotificationService {
     private void setNotificationColor(final Builder mBuilder, Account account) {
         int color;
         if (account != null && mXmppConnectionService.getAccounts().size() > 1) {
-		      color = UIHelper.getColorForName(account.getJid().asBareJid().toString());
+		      color = account.getColor(false);
         } else {
             TypedValue typedValue = new TypedValue();
             mXmppConnectionService.getTheme().resolveAttribute(R.attr.colorPrimary, typedValue, true);