Review Request: Add an option to block an incoming contact

Rohan Garg rohangarg at kubuntu.org
Tue Oct 23 16:27:35 UTC 2012



> On Oct. 23, 2012, 4:22 p.m., David Edmundson wrote:
> > From a code POV, it's good (except for the _massive_ bug that you copied and pasted.)
> > 
> > From a usability request, why would you deny if you didn't want to block as well? It seems having 3 options is a bit redundant IRL, and I would propose merging with deny.

I'd say that 'Deny' would mean "I'm not sure about this person, how about I ask if this really is him before accepting" while 'Block' would mean "Spammer/Stalker!!! Don't ever prompt me again!"


> On Oct. 23, 2012, 4:22 p.m., David Edmundson wrote:
> > contact-request-handler.cpp, line 347
> > <http://git.reviewboard.kde.org/r/107012/diff/1/?file=92119#file92119line347>
> >
> >     NO!
> >     The code has the potential to infinite loop!!!!!!  
> >     
> >     the ++i should be outside the if.
> >     
> >     I've just noticed you copied and pasted this. So well done for helping me fix a bug!
> >     I've been wondering where that existing 100% CPU usage bug came from.

Whoops. Good catch. Fixing all over :)


> On Oct. 23, 2012, 4:22 p.m., David Edmundson wrote:
> > contact-request-handler.cpp, line 374
> > <http://git.reviewboard.kde.org/r/107012/diff/1/?file=92119#file92119line374>
> >
> >     Just because the original codebase has stupid comments, doesn't allow you to copy them :P

Right :P


- Rohan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107012/#review20747
-----------------------------------------------------------


On Oct. 23, 2012, 3:59 p.m., Rohan Garg wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107012/
> -----------------------------------------------------------
> 
> (Updated Oct. 23, 2012, 3:59 p.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Description
> -------
> 
> Add an option to block an incoming contact. This can be used to prevent a notification to be shown when being spammed with new contact requests.
> 
> 
> This addresses bugs 297994 and 308809.
>     http://bugs.kde.org/show_bug.cgi?id=297994
>     http://bugs.kde.org/show_bug.cgi?id=308809
> 
> 
> Diffs
> -----
> 
>   contact-request-handler.h 43456ee 
>   contact-request-handler.cpp ea24885 
> 
> Diff: http://git.reviewboard.kde.org/r/107012/diff/
> 
> 
> Testing
> -------
> 
> Works fine. Once blocked, notification does not reappear. User can also accept a blocked request after unblocking the contact and resending contact authorization.
> 
> 
> Thanks,
> 
> Rohan Garg
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20121023/1f0eeaf0/attachment-0001.html>


More information about the KDE-Telepathy mailing list