Skip to content
Snippets Groups Projects
Commit 4ec4bf37 authored by Mnikolenko ProductEngine's avatar Mnikolenko ProductEngine
Browse files

MAINT-5730 FIXED Text overlapping in group invites with non-default group role

parent c9c17b3c
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include "lluicolortable.h" #include "lluicolortable.h"
#include "message.h" #include "message.h"
#include "llnotificationsutil.h" #include "llnotificationsutil.h"
#include <boost/regex.hpp>
LLNotificationListItem::LLNotificationListItem(const Params& p) : LLPanel(p), LLNotificationListItem::LLNotificationListItem(const Params& p) : LLPanel(p),
mParams(p), mParams(p),
...@@ -285,6 +286,16 @@ BOOL LLGroupInviteNotificationListItem::postBuild() ...@@ -285,6 +286,16 @@ BOOL LLGroupInviteNotificationListItem::postBuild()
mDeclineBtn = getChild<LLButton>("decline_btn"); mDeclineBtn = getChild<LLButton>("decline_btn");
mInfoBtn = getChild<LLButton>("info_btn"); mInfoBtn = getChild<LLButton>("info_btn");
//invitation with any non-default group role, doesn't have newline characters at the end unlike simple invitations
std::string invitation_desc = mNoticeTextExp->getValue().asString();
boost::regex pattern = boost::regex("\n\n$", boost::regex::perl|boost::regex::icase);
boost::match_results<std::string::const_iterator> matches;
if(!boost::regex_search(invitation_desc, matches, pattern))
{
invitation_desc += "\n\n";
mNoticeTextExp->setValue(invitation_desc);
}
mJoinBtn->setClickedCallback(boost::bind(&LLGroupInviteNotificationListItem::onClickJoinBtn,this)); mJoinBtn->setClickedCallback(boost::bind(&LLGroupInviteNotificationListItem::onClickJoinBtn,this));
mDeclineBtn->setClickedCallback(boost::bind(&LLGroupInviteNotificationListItem::onClickDeclineBtn,this)); mDeclineBtn->setClickedCallback(boost::bind(&LLGroupInviteNotificationListItem::onClickDeclineBtn,this));
mInfoBtn->setClickedCallback(boost::bind(&LLGroupInviteNotificationListItem::onClickInfoBtn,this)); mInfoBtn->setClickedCallback(boost::bind(&LLGroupInviteNotificationListItem::onClickInfoBtn,this));
......
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