adium/adium
Clone
Summary
Browse
Changes
Graph
Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
GoogleOAuth2
2015-04-01, Thijs Alkemade
c4923ddd82bf
Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
global
HandyAdiumScripts
on
run
tell
application
"Adium"
set
newChatWindow
to
HandyAdiumScripts
's
makeNewChatWindow
()
set
c
to
count
of
chat
windows
close
newChatWindow
delay
1
if
(
count
of
chat
windows
)
is not
c
-
1
then
error
(
"Count of chat windows is "
&
(
count
of
chat
windows
)
&
" when it should be "
&
(
c
-
1
))
end
tell
end
run