Skip to content

Commit

Permalink
Fix user initials
Browse files Browse the repository at this point in the history
  • Loading branch information
endenwer committed Apr 5, 2016
1 parent b83ff79 commit c2b7514
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/models/telegram_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ def author_name
end

def author_initials
[from_first_name.first, from_last_name.first].join
if from_first_name && from_last_name
[from_first_name.first, from_last_name.first].join
else
from_username[0..1]
end
end

def user_id
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
name 'Redmine Chat Telegram plugin'
url 'https://github.com/centosadmin/redmine_chat_telegram'
description 'This is a plugin for Redmine which adds Telegram Group Chat to Redmine Issue'
version '0.9.1'
version '0.9.2'
author 'Centos-admin.ru'
author_url 'http://centos-admin.ru'

Expand Down

0 comments on commit c2b7514

Please sign in to comment.